@Test
  public void testSaslNoCommonQop() throws Exception {
    setRpcProtection("integrity", "privacy");
    SaslException se = assertThrows(SaslException.class, () -> callRpcService());
    assertEquals("No common protection layer between client and server", se.getMessage());
  }
Test various combinations of Server and Client qops.
hbase-server/src/test/java/org/apache/hadoop/hbase/security/AbstractTestSecureIPC.java