@isTest
public class RetrieveApprovalRecordsControllerTest {
    public static testMethod void method1(){
        Integer intvar = RetrieveApprovalRecordsController.gettotalcount();
        List<RetrieveApprovalRecordsController.SubmittedRecordsWrapper> prorec = new List<RetrieveApprovalRecordsController.SubmittedRecordsWrapper>();
        prorec = RetrieveApprovalRecordsController.getSubmittedRecords(5,0);
        try{
            string resultrec = RetrieveApprovalRecordsController.processRecords('Approve',Json.serialize(prorec));
        }catch(Exception e){
            system.debug('Exception from process:'+e.getMessage());
        }
        RetrieveApprovalRecordsController.getObjectName(UserInfo.getUserId());
        ProcessInstance ps = new ProcessInstance();
        ps.TargetObjectId = UserInfo.getUserId();
        RetrieveApprovalRecordsController.getSubmitRecord(ps);
    }
}