* @param principal the principal to use. May be <code>null</code>
* @throws Exception for any error
*/
protected ManagedConnectionAcceptor createAcceptor(Principal principal)
throws Exception {
ConnectionRequestInfo info = getAcceptorConnectionRequestInfo();
Authenticator authenticator = new TestAuthenticator(principal);
ManagedConnectionFactory factory = new HTTPSManagedConnectionFactory();
return factory.createManagedConnectionAcceptor(authenticator, info);
}