### Question:
RouterMetrics { @VisibleForTesting public int getAppsFailedKilled() { return numAppsFailedKilled.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();  }### Answer:
@Test public void testAppsFailedKilled() { long totalBadbefore = metrics.getAppsFailedKilled(); badSubCluster.forceKillApplication(); Assert.assertEquals(totalBadbefore + 1, metrics.getAppsFailedKilled()); }