@Test(expected = LdapOperationException.class)
public void testAddEntryNonExistingOC() throws Exception
{
LdapConnection connection = getAdminConnection( getLdapServer() );
Dn dn = new Dn( "cn=Kate Bush," + BASE );
Entry personEntry = new DefaultEntry();
personEntry.add( SchemaConstants.OBJECT_CLASS_AT, "nonexistingOC" );
personEntry.add( SchemaConstants.CN_AT, "Kate Bush" );
personEntry.add( SchemaConstants.SN_AT, "Bush" );