@Test
public void testAccessRemoteNodeLabelManager() throws Exception {

  String[] args =
      { "-addToClusterNodeLabels", "x,y" };
  assertEquals(0, rmAdminCLI.run(args));
  
  // localNodeLabelsManager shouldn't accessed
  assertTrue(dummyNodeLabelsManager.getClusterNodeLabels().isEmpty());
  
  // remote node labels manager accessed
  assertTrue(remoteAdminServiceAccessed);
}