  @Test
  public void testReducedNamedOnly() throws OWLOntologyCreationException, IOException {

    OWLReasonerFactory reasonerFactory = new org.semanticweb.elk.owlapi.ElkReasonerFactory();

    OWLOntology ontologyA = loadOntology("/reduce-named-only-test.ofn");
    Map<String, String> optionsA = new HashMap<String, String>();
    optionsA.put("named-classes-only", "true");
    ReduceOperation.reduce(ontologyA, reasonerFactory, optionsA);
    assertIdentical("/reduce-named-only-test-named-only-true-reduced.ofn", ontologyA);

    OWLOntology ontologyB = loadOntology("/reduce-named-only-test.ofn");
    Map<String, String> optionsB = new HashMap<String, String>();
    optionsB.put("named-classes-only", "false");
    ReduceOperation.reduce(ontologyB, reasonerFactory, optionsB);
    assertIdentical("/reduce-named-only-test-named-only-false-reduced.ofn", ontologyB);
  }