@Test
public void getAllClassesDeclaredTest() throws Exception {

    // Setup:
    Set<String> expectedClasses = Stream.of("http://mobi.com/ontology/only-declared#ClassA",
            "http://mobi.com/ontology/only-declared#ClassB", "http://mobi.com/ontology/only-declared#ClassC").collect(Collectors.toSet());
    Set<OClass> classes = onlyDeclared.getAllClasses();
    assertEquals(expectedClasses.size(), classes.size());
    classes.stream()
            .map(oClass -> oClass.getIRI().stringValue())
            .forEach(iri -> assertTrue(expectedClasses.contains(iri)));
}