@Test(expected = QueryException.class)
public void test_param_string_simple_bad_1() {

    // Test bad input - injecting the parameter makes the query invalid
    String cmdText = "SELECT ?s WHERE { ?s ?p ?o }";
    ParameterizedSparqlString query = new ParameterizedSparqlString(cmdText);
    query.setIri("s", "http://example.org");
    test(query, new String[] { "<http://example.org>" }, new String[] { "?s" });
    testAsQuery(query);
}