@Test
public void testCompareAsync() throws Exception
{
DN dn = new DN( "uid=admin,ou=system" );
CompareRequest compareRequest = new CompareRequest();
compareRequest.setEntryDn( dn );
compareRequest.setAttrName( SchemaConstants.UID_AT );
compareRequest.setValue( "admin" );
connection.compare( compareRequest);
assertTrue( session.exists( dn ) );