public void testLoadSchemasWithDepsCoreInetOrgPersonAndBad() throws Exception
{
LdifSchemaLoader loader = new LdifSchemaLoader( schemaRepository );
SchemaManager schemaManager = new DefaultSchemaManager( loader );
Schema system = loader.getSchema( "system" );
Schema core = loader.getSchema( "core" );
Schema empty = new DefaultSchema( "empty" );
Schema cosine = loader.getSchema( "cosine" );
Schema inetOrgPerson = loader.getSchema( "InetOrgPerson" );
assertTrue( schemaManager.load( system, core, empty, cosine, inetOrgPerson ) );
assertTrue( schemaManager.getErrors().isEmpty() );
assertEquals( 142, schemaManager.getAttributeTypeRegistry().size() );