@Test public void shouldHandleNullManager_For_GetBottomClassNode() { try { when(ontology.getOWLOntologyManager()).thenReturn(null); reasoner.getBottomClassNode(); } catch (NullPointerException e) { fail("NullPointerException"); } }
@Test public void shouldGetBottomClassNode() { Node<OWLClass> node = reasoner.getBottomClassNode(); assertThat(node.getEntities(), is(Collections.singleton(owlNothing))); }