public int getRefreshNodesResourcesFailedRetrieved() {
    return numRefreshNodesResourcesFailedRetrieved.value();
  }
@Test
  public void testRefreshNodesResourcesRetrievedFailed() {
    long totalBadBefore = metrics.getRefreshNodesResourcesFailedRetrieved();
    badSubCluster.getRefreshNodesResourcesFailed();
    Assert.assertEquals(totalBadBefore + 1, metrics.getRefreshNodesResourcesFailedRetrieved());
  }