@Test
public void testRemoveLabelsOnNodes() throws Exception {

  // Successfully replace labels
  dummyNodeLabelsManager
      .addToCluserNodeLabelsWithDefaultExclusivity(ImmutableSet.of("x", "y"));
  String[] args = { "-replaceLabelsOnNode", "node1=x node2=y",
      "-directlyAccessNodeLabelStore" };
  assertTrue(0 == rmAdminCLI.run(args));
  args = new String[] { "-replaceLabelsOnNode", "node1= node2=",
      "-directlyAccessNodeLabelStore" };
  assertTrue("Labels should get replaced even '=' is used ",
      0 == rmAdminCLI.run(args));
}