@Test
public void getAllIndividualsTest() throws Exception {

    // Setup:
    Set<String> expectedIndividuals = Stream.of("http://test.com/ontology1#IndividualD", "http://test.com/ontology1#IndividualA").collect(Collectors.toSet());
    Set<Individual> individuals = ontology.getAllIndividuals();
    assertEquals(expectedIndividuals.size(), individuals.size());
    individuals.stream()
            .map(individual -> individual.getIRI().stringValue())
            .forEach(iri -> assertTrue(expectedIndividuals.contains(iri)));
}