SchemaManager schemaManager = loadSchema( "system" );
int sSize = schemaManager.getLdapSyntaxRegistry().size();
int goidSize = schemaManager.getGlobalOidRegistry().size();
// delete a existing syntax not used by AT and MR
LdapSyntax syntax = schemaManager.lookupLdapSyntaxRegistry( "1.3.6.1.4.1.1466.115.121.1.10" );
assertTrue( schemaManager.delete( syntax ) );
assertEquals( sSize - 1, schemaManager.getLdapSyntaxRegistry().size() );
assertEquals( goidSize - 1, schemaManager.getGlobalOidRegistry().size() );