LdifSchemaLoader loader = new LdifSchemaLoader( schemaRepository );
SchemaManager schemaManager = new DefaultSchemaManager( loader );
assertTrue( schemaManager.load( "system" ) );
assertTrue( schemaManager.load( "core" ) );
assertTrue( schemaManager.load( "cosine" ) );
assertTrue( schemaManager.getErrors().isEmpty() );
assertEquals( 133, schemaManager.getAttributeTypeRegistry().size() );
assertEquals( 35, schemaManager.getComparatorRegistry().size() );
assertEquals( 35, schemaManager.getMatchingRuleRegistry().size() );