public int getAppActivitiesFailedRetrieved() {
    return numGetAppActivitiesFailedRetrieved.value();
  }
@Test
  public void testGetAppActivitiesRetrievedFailed() {
    long totalBadBefore = metrics.getAppActivitiesFailedRetrieved();
    badSubCluster.getAppActivitiesFailed();
    Assert.assertEquals(totalBadBefore + 1,
        metrics.getAppActivitiesFailedRetrieved());
  }