RouterMetrics { @VisibleForTesting public int getAppsFailedSubmitted() { return numAppsFailedSubmitted.value(); } private  RouterMetrics(); static RouterMetrics getMetrics(); @VisibleForTesting long getNumSucceededAppsCreated(); @VisibleForTesting long getNumSucceededAppsSubmitted(); @VisibleForTesting long getNumSucceededAppsKilled(); @VisibleForTesting long getNumSucceededAppsRetrieved(); @VisibleForTesting long getNumSucceededMultipleAppsRetrieved(); @VisibleForTesting double getLatencySucceededAppsCreated(); @VisibleForTesting double getLatencySucceededAppsSubmitted(); @VisibleForTesting double getLatencySucceededAppsKilled(); @VisibleForTesting double getLatencySucceededGetAppReport(); @VisibleForTesting double getLatencySucceededMultipleGetAppReport(); @VisibleForTesting int getAppsFailedCreated(); @VisibleForTesting int getAppsFailedSubmitted(); @VisibleForTesting int getAppsFailedKilled(); @VisibleForTesting int getAppsFailedRetrieved(); @VisibleForTesting int getMultipleAppsFailedRetrieved(); void succeededAppsCreated(long duration); void succeededAppsSubmitted(long duration); void succeededAppsKilled(long duration); void succeededAppsRetrieved(long duration); void succeededMultipleAppsRetrieved(long duration); void incrAppsFailedCreated(); void incrAppsFailedSubmitted(); void incrAppsFailedKilled(); void incrAppsFailedRetrieved(); void incrMultipleAppsFailedRetrieved();  }
@Test public void testAppsFailedSubmitted() { long totalBadbefore = metrics.getAppsFailedSubmitted(); badSubCluster.submitApplication(); Assert.assertEquals(totalBadbefore + 1, metrics.getAppsFailedSubmitted()); }