Assembler a = new DocumentManagerAssembler()
{
@Override
protected OntDocumentManager createDocumentManager()
{
return new OntDocumentManager( "" )
{
@Override
public void processMetadata( Model m )
{
assertIsoModels( expected, m );
history.add( "called" );
super.processMetadata( m ); }
};
}
};
OntDocumentManager d = (OntDocumentManager) a.open( root );
assertEquals( listOfOne( "called" ), history );
}