@Test
  public void testJmxMetrics() throws Exception {

    assertEquals(getStatus(), "true");
    master.getLoadBalancer().updateBalancerStatus(false);
    assertEquals(getStatus(), "false");

  }
Tests the status change using the Default Metrics System
hbase-server/src/test/java/org/apache/hadoop/hbase/master/balancer/TestBalancerStatusTagInJMXMetrics.java