### Question:
FileBasedOntologyService implements OntologyService { @Override public Model getOntology() { return modelFrom(getOntologyTurtle(), Lang.TURTLE); } FileBasedOntologyService(); @Override Model getOntology();  }### Answer:
@Test public void should_have_replaced_uris() throws Exception { OntologyService service = new FileBasedOntologyService(); Model ontology = service.getOntology(); String turtle = stringFrom(ontology, Lang.TURTLE); assertThat(turtle, not(containsString("_BASE_URI_"))); assertThat(turtle, containsString(BaseURI.root())); }
@Test public void should_return_ontology_as_model() throws IOException { OntologyService service = new FileBasedOntologyService(); assertNotNull(service.getOntology()); }