@Test
public void testAppsFailedCreated() {

  long totalBadbefore = metrics.getAppsFailedCreated();
  badSubCluster.getNewApplication();
  Assert.assertEquals(totalBadbefore + 1, metrics.getAppsFailedCreated());
}