PoolableUnboundConnectionFactory extends BasePooledObjectFactory<LdapConnection> { public LdapConnectionValidator getValidator() { return validator; } PoolableUnboundConnectionFactory(LdapConnectionConfig config); LdapConnectionValidator getValidator(); void setValidator(LdapConnectionValidator validator); void activateObject(LdapConnection connection); void destroyObject(LdapConnection connection); LdapConnection create(); PooledObject<LdapConnection> wrap(LdapConnection foo); void passivateObject(LdapConnection connection); boolean validateObject(LdapConnection connection);  }
@Test public void testGetValidator() { LdapConnectionValidator validator = factory.getValidator(); assertTrue(validator instanceof LookupLdapConnectionValidator); }