private CoreSession injectEntries() throws Exception
{
Dn adminDn = new Dn( schemaManager, "uid=admin,ou=system" );
CoreSession session = new MockCoreSession( new LdapPrincipal( schemaManager, adminDn, AuthenticationLevel.STRONG ),
new MockDirectoryService( 1 ) );
AddOperationContext addCtx = new AddOperationContext( session );
Entry childEntry1 = createEntry( "dc=child1,ou=test,ou=system" );
childEntry1.put( "ObjectClass", "top", "domain" );