@FixFor( "MODE-1840" )
@Test( expected = InvalidQueryException.class )
public void shouldNotBeAbleToCreateAndExecuteJcrSql2QueryWithBindVariableInsideContainsIfVariableIsNotBound()
    throws RepositoryException {

    String sql = "select [jcr:path] from [nt:unstructured] as n where contains(n.something, $expression)";
    Query query = session.getWorkspace().getQueryManager().createQuery(sql, Query.JCR_SQL2);
    assertThat(query, is(notNullValue()));
    // do not bind a value
    // query.bindValue("expression", session.getValueFactory().createValue("cat wearing"));
    query.execute();
}