public int getActivitiesFailedRetrieved() {
    return numGetActivitiesFailedRetrieved.value();
  }
@Test
  public void testGetActivitiesRetrievedFailed() {
    long totalBadBefore = metrics.getActivitiesFailedRetrieved();
    badSubCluster.getActivitiesFailed();
    Assert.assertEquals(totalBadBefore + 1,
        metrics.getActivitiesFailedRetrieved());
  }