@Test
public void getIndividualsOfTypeDeclaredTest() throws Exception {

    // Setup:
    OClass clazz = new SimpleClass(vf.createIRI(SKOS.CONCEPT.stringValue()));
    Set<String> expectedIndividuals = Stream.of("http://mobi.com/ontology/only-declared#ConceptA").collect(Collectors.toSet());
    Set<Individual> individuals = onlyDeclared.getIndividualsOfType(clazz);
    assertEquals(expectedIndividuals.size(), individuals.size());
    individuals.stream()
            .map(individual -> individual.getIRI().stringValue())
            .forEach(iri -> assertTrue(expectedIndividuals.contains(iri)));
}