class LocalOntology implements Ontology {

  public Ontology getInstance() {
    if (ontology == null) {
      ontology = new LocalOntology();
    }
    return ontology;
  }

}

class TestLocalOntology {

  private LocalOntology lOnt;

  @Test
  public final void testGetInstance() {

    assertSame("Ontology instance should be of type LocalOntology", LocalOntology.class, lOnt.getInstance().getClass());
  }

}