@Test
  public void testRSConnectorServerWhenStopRegionServer() throws Exception {
    ServerName serverName = UTIL.getHBaseCluster().getRegionServer(0).getServerName();
    LOG.info("Stopping Region Server...");
    admin.stopRegionServer(serverName.getHostname() + ":" + serverName.getPort());

    checkConnector();
  }
This tests to validate the RegionServer's ConnectorServer after unauthorised stopRegionServer
call.
hbase-server/src/test/java/org/apache/hadoop/hbase/TestJMXConnectorServer.java