@Test
  public void testMatches() {
    assertServiceMatches(
      UTIL.getMiniHBaseCluster().getMaster().getMasterRpcServices().getRpcServer());
    assertServiceMatches(UTIL.getMiniHBaseCluster().getRegionServer(0).getRpcServer());
  }
Make sure that all rpc services for master and region server are properly configured in
{@link SecurityInfo} and {@link HBasePolicyProvider}.
hbase-server/src/test/java/org/apache/hadoop/hbase/security/TestSecurityInfoAndHBasePolicyProviderMatch.java