@Test
public void test_param_string_prefixes_2() {

    // Test prefixes are prepended
    String cmdText = "SELECT * WHERE { ?s ex:predicate ?o }";
    ParameterizedSparqlString query = new ParameterizedSparqlString(cmdText);
    query.setNsPrefix("ex", "http://example.org");
    test(query, new String[] { "PREFIX", "ex:", "<http://example.org>", "ex:predicate" }, new String[] {});
    testAsQuery(query);
}