@Test
public void testAppsFailedSubmitted() {

  long totalBadbefore = metrics.getAppsFailedSubmitted();
  badSubCluster.submitApplication();
  Assert.assertEquals(totalBadbefore + 1, metrics.getAppsFailedSubmitted());
}