assertTrue( session.exists( dn ) );
CompareFuture compareFuture = connection.compareAsync( compareRequest );
CompareResponse compareResponse = compareFuture.get( 1000, TimeUnit.MILLISECONDS );
assertNotNull( compareResponse );
assertEquals( ResultCodeEnum.COMPARE_TRUE, compareResponse.getLdapResult().getResultCode() );
}