### Question:
SparqlClient { public List<Map<String, RDFTerm>> queryResultSet(final String query) throws IOException { return (List<Map<String, RDFTerm>>) queryResult(query); } SparqlClient(final String endpoint); List<Map<String, RDFTerm>> queryResultSet(final String query); Object queryResult(final String query);  }### Answer:
@Test public void select() throws IOException { final SparqlClient sparqlClient = new SparqlClient( "http: List<Map<String, RDFTerm>> result = sparqlClient.queryResultSet( "SELECT ?name WHERE { " + "<http: + "<http: Assert.assertEquals("There should be two names", 2, result.size()); }