@Test
public void testAppsReportFailed() {

  long totalBadbefore = metrics.getAppsFailedRetrieved();
  badSubCluster.getApplicationReport();
  Assert.assertEquals(totalBadbefore + 1, metrics.getAppsFailedRetrieved());
}