@Test public void shouldHandleNullManager_For_GetTopBottomObjectPropertyNode() { try { when(ontology.getOWLOntologyManager()).thenReturn(null); reasoner.getBottomObjectPropertyNode(); } catch (NullPointerException e) { fail("NullPointerException"); } }
@Test public void shouldGetBottomObjectPropertyNode() { Node<OWLObjectPropertyExpression> node = reasoner.getBottomObjectPropertyNode(); assertThat(node.getEntities(), is(Collections.singleton(owlBottomObjectProperty))); }