new SyntacticLocalityModuleExtractor( manager, ontology, moduleType );
Set<OWLAxiom> expected = segmenter.extract( signature );
// prune declarations to avoid mismatches related to declarations
for( OWLEntity entity : signature ) {
OWLDeclarationAxiom declaration = OWL.declaration( entity );
computed.remove( declaration );
computed.remove( declaration );
}
TestUtils.assertToStringEquals( "Modules diff for " + signature, expected.toArray( new OWLAxiom[0] ), computed.toArray( new OWLAxiom[0] ) );