@Test
public void testMain() {

    System.out.println("main");
    String query = "PREFIX geo: <http://www.opengis.net/ont/geosparql#>\n"
            + "\n"
            + "SELECT ?obj\n"
            + "WHERE{\n"
            + "    <http://example.org/Geometry#PolygonH> geo:sfContains ?obj .\n"
            + "}ORDER by ?obj";
    List<Resource> result = new ArrayList<>();
    try (QueryExecution qe = QueryExecutionFactory.sparqlService(SERVER.getLocalServiceURL(), query)) {
        ResultSet rs = qe.execSelect();
        while (rs.hasNext()) {
            QuerySolution qs = rs.nextSolution();
            Resource obj = qs.getResource("obj");
            result.add(obj);
        }
        //ResultSetFormatter.outputAsTSV(rs);
    }
    List<Resource> expResult = new ArrayList<>();
    expResult.add(ResourceFactory.createResource("http://example.org/Feature#A"));
    expResult.add(ResourceFactory.createResource("http://example.org/Feature#D"));
    expResult.add(ResourceFactory.createResource("http://example.org/Feature#H"));
    expResult.add(ResourceFactory.createResource("http://example.org/Feature#K"));
    expResult.add(ResourceFactory.createResource("http://example.org/Geometry#LineStringD"));
    expResult.add(ResourceFactory.createResource("http://example.org/Geometry#PointA"));
    expResult.add(ResourceFactory.createResource("http://example.org/Geometry#PolygonH"));
    expResult.add(ResourceFactory.createResource("http://example.org/Geometry#PolygonK"));
    //System.out.println("Exp: " + expResult);
    //System.out.println("Res: " + result);
    assertEquals(expResult, result);
}