@Override
  protected void setupOpenFailure(KerberosOperationHandler handler) throws Exception {
    ADKerberosOperationHandler adHandler = (ADKerberosOperationHandler) handler;
    expect(adHandler.createInitialLdapContext(anyObject(Properties.class), isNull())).andThrow(new AuthenticationException("Bogus error!")).anyTimes();
  }
Implementation to illustrate the use of operations on this class

@throws Throwable
ambari-server/src/test/java/org/apache/ambari/server/serveraction/kerberos/ADKerberosOperationHandlerTest.java