@Override
 public List<ApplicationReport> getApplications(
     Set<String> applicationTypes, EnumSet<YarnApplicationState> applicationStates)
     throws YarnException, IOException {
   GetApplicationsRequest request =
       GetApplicationsRequest.newInstance(applicationTypes, applicationStates);
   GetApplicationsResponse response = rmClient.getApplications(request);
   return response.getApplicationList();
 }
 @Override
 public List<ApplicationReport> getApplications(
     Set<String> applicationTypes, EnumSet<YarnApplicationState> applicationStates)
     throws YarnException, IOException {
   when(mockAppResponse.getApplicationList())
       .thenReturn(getApplicationReports(reports, applicationTypes, applicationStates));
   return super.getApplications(applicationTypes, applicationStates);
 }