@Test
  public void testDifferentConfWithCryptoAES() throws Exception {
    setRpcProtection("privacy", "privacy");

    setCryptoAES("false", "true");
    callRpcService();

    setCryptoAES("true", "false");
    try {
      callRpcService();
      fail("The exception should be thrown out for the rpc timeout.");
    } catch (Exception e) {
      // ignore the expected exception
    }
  }
Test various combinations of Server and Client configuration for Crypto AES.
hbase-server/src/test/java/org/apache/hadoop/hbase/security/AbstractTestSecureIPC.java