@Test
public void testFailDeleteNotAllowedOnNonLeaf() throws Exception
{
LdapConnection connection = getAdminConnection( ldapServer );
AddResponse resp = createSubContext( "ou", "blah" );
resp = createSubContext( new DN( "ou=blah,ou=system" ), "ou", "subctx" );
DeleteResponse delResp = connection.delete( "ou=blah,ou=system" );
assertEquals( ResultCodeEnum.NOT_ALLOWED_ON_NON_LEAF, delResp.getLdapResult().getResultCode() );
}