PrologHandler implements Handler { public void setBase(IRIResolver resolver) { query.setBaseURI(resolver); } PrologHandler(Query query); void setBase(IRIResolver resolver); void setBase(String base); void addPrefix(String pfx, String uri); void clearPrefixes(); void addPrefixes(Map<String, String> prefixes); PrefixMapping getPrefixes(); ExprFactory getExprFactory(); void addPrefixes(PrefixMapping prefixes); void addAll(PrologHandler pfxHandler); @Override void setVars(Map<Var, Node> values); @Override void build();  }
@Test public void testSetBaseString() { handler.setBase("foo"); String[] lst = byLine(query.toString()); assertContainsRegex("BASE\\s+\\<.+/foo\\>", lst); }