### Question:
HermitReasoningService extends AbstractOWLApiReasoningService implements OWLApiReasoningService { @Override protected OWLReasoner getReasoner(OWLOntology ontology) { log.debug("Creating HermiT reasoner: {}",ontology); Configuration config = new Configuration(); config.ignoreUnsupportedDatatypes = true; config.throwInconsistentOntologyException = true; log.debug("Configuration: {}, debugger {}",config,config.monitor); ReasonerFactory risfactory = new ReasonerFactory(); log.debug("factory: {}",risfactory); OWLReasoner reasoner = null; reasoner = risfactory.createReasoner(ontology, config); log.debug("Reasoner : {}",reasoner); if(reasoner == null){ log.error("Cannot create the reasner!!"); throw new IllegalArgumentException("Cannot create the reasoner"); } return reasoner; }  @Override String getPath(); @Activate void activate(ComponentContext context); static final String _DEFAULT_PATH; }### Answer:
@Test public void testInstantiation() { log.info("Testing the innstantiation of an HermitReasoningService"); OWLOntology foaf = TestData.manager.getOntology(IRI.create(TestData.FOAF_NS)); HermitReasoningService akindofhermit = new HermitReasoningService() { protected OWLReasoner getReasoner(OWLOntology ontology) { try { OWLReasoner reasoner = super.getReasoner(ontology); assertTrue(reasoner != null); return reasoner; } catch (Throwable t) { log.error( "Some prolem occurred while instantiating the HermitReasoningService. Message was: {}", t.getLocalizedMessage()); assertTrue(false); return null; } } }; long startHere = System.currentTimeMillis(); akindofhermit.getReasoner(foaf); long endHere = System.currentTimeMillis(); log.info("Instantiating an Hermit reasoner lasts {} milliseconds", (endHere - startHere)); }