*/
@Test
public void testLoadInetOrgPerson() throws Exception
{
LdifSchemaLoader loader = new LdifSchemaLoader( schemaRepository );
SchemaManager schemaManager = new DefaultSchemaManager( loader );
assertTrue( schemaManager.load( "system" ) );
assertTrue( schemaManager.load( "core" ) );
assertTrue( schemaManager.load( "cosine" ) );
assertTrue( schemaManager.load( "InetOrgPerson" ) );
assertTrue( schemaManager.getErrors().isEmpty() );
assertEquals( 142, schemaManager.getAttributeTypeRegistry().size() );
assertEquals( 35, schemaManager.getComparatorRegistry().size() );
assertEquals( 35, schemaManager.getMatchingRuleRegistry().size() );
assertEquals( 35, schemaManager.getNormalizerRegistry().size() );
assertEquals( 50, schemaManager.getObjectClassRegistry().size() );
assertEquals( 59, schemaManager.getSyntaxCheckerRegistry().size() );
assertEquals( 59, schemaManager.getLdapSyntaxRegistry().size() );
assertEquals( 286, schemaManager.getGlobalOidRegistry().size() );
assertEquals( 4, schemaManager.getRegistries().getLoadedSchemas().size() );
assertNotNull( schemaManager.getRegistries().getLoadedSchema( "system" ) );
assertNotNull( schemaManager.getRegistries().getLoadedSchema( "core" ) );
assertNotNull( schemaManager.getRegistries().getLoadedSchema( "cosine" ) );
assertNotNull( schemaManager.getRegistries().getLoadedSchema( "InetOrgPerson" ) );
}