@VisibleForTesting
  public int getAppsFailedCreated() {
    return numAppsFailedCreated.value();
  }
@Test
  public void testAppsFailedCreated() {

    long totalBadbefore = metrics.getAppsFailedCreated();

    badSubCluster.getNewApplication();

    Assert.assertEquals(totalBadbefore + 1, metrics.getAppsFailedCreated());
  }