@Test
public void testGetSearchResults() throws Exception {

    Set<String> entities = Stream.of("http://mobi.com/ontology#Class3a", "http://mobi.com/ontology#Class2a",
            "http://mobi.com/ontology#Class2b", "http://mobi.com/ontology#Class1b", "http://mobi.com/ontology#Class1c",
            "http://mobi.com/ontology#Class1a").collect(Collectors.toSet());
    TupleQueryResult result = queryOntology.getSearchResults("class", vf);
    assertTrue(result.hasNext());
    result.forEach(b -> {
        String parent = Bindings.requiredResource(b, "entity").stringValue();
        assertTrue(entities.contains(parent));
        entities.remove(parent);
        assertEquals("http://www.w3.org/2002/07/owl#Class", Bindings.requiredResource(b, "type").stringValue());
    });
    assertEquals(0, entities.size());
}