public void testAddPDUExceedingMaxSizeLdapApi() throws Exception
{
// Limit the PDU size to 1024
getLdapServer().getDirectoryService().setMaxPDUSize( 1024 );
LdapConnection connection = new LdapNetworkConnection( "localhost", getLdapServer().getPort() );
connection.bind( "uid=admin,ou=system", "secret" );
// Inject a 1024 bytes long description
StringBuilder sb = new StringBuilder();
for ( int i = 0; i < 128; i++ )