@Test
public void test_param_string_name_collision_2() {

    // Test name collision
    // The parameter we inject has a name which is a prefix of another
    // variable name, only the
    // actual name should be injected to
    String cmdText = "SELECT * WHERE { ?abc ?ab ?a. }";
    ParameterizedSparqlString query = new ParameterizedSparqlString(cmdText);
    query.setIri("a", "http://example.org");
    // In the not expected list we need the whitespace after ?a as otherwise
    // the test will give a
    // false negative since obviously we should still have ?ab and ?abc
    // present
    test(query, new String[] { "<http://example.org>", "?ab", "?abc" }, new String[] { "?a " });
    testAsQuery(query);
}