@Override
public Model getModel( String URL ) { return null; }
@Override
public Model getModel( String URL, ModelReader loadIfAbsent )
{ throw new CannotCreateException( URL ); }
};
NamedObjectAssembler mock = new NamedObjectAssembler( resource( "source" ), getter );
Resource root = resourceInModel( "x rdf:type ja:OntModelSpec; x ja:importSource source" );
OntModelSpec om = (OntModelSpec) a.open( mock, root );
assertSame( getter, om.getImportModelGetter() );