@Test
public void getAllObjectPropertiesTest() throws Exception {

    // Setup:
    Set<String> expectedProps = Stream.of("http://test.com/ontology1#testObjectProperty1", "http://test.com/ontology1#testObjectProperty2").collect(Collectors.toSet());
    Set<ObjectProperty> properties = ontology.getAllObjectProperties();
    assertEquals(expectedProps.size(), properties.size());
    properties.stream()
            .map(property -> property.getIRI().stringValue())
            .forEach(iri -> assertTrue(expectedProps.contains(iri)));
}