OntClass ontClass = m0.getOntClass( "http://incubator.apache.org/jena/2011/10/testont/a#A" );
subModel0.add( ontClass, RDF.type, OWL.DeprecatedClass );
assertEquals( count0 + 1, subModel0.size() );
// TODO this workaround to be removed
SimpleGraphMaker sgm = (SimpleGraphMaker) ((ModelMakerImpl) spec.getImportModelMaker()).getGraphMaker();
List<String> toGo = new ArrayList<String>();
for (Iterator<String> i = sgm.listGraphs(); i.hasNext(); toGo.add( i.next() )) {/**/}
for (Iterator<String> i = toGo.iterator(); i.hasNext(); sgm.removeGraph( i.next() )) {/**/}
spec.getDocumentManager().clearCache();
OntModel m1 = ModelFactory.createOntologyModel(spec, null);
m1.read( "http://incubator.apache.org/jena/2011/10/testont/a" );
Model subModel1 = m1.listSubModels().next();