    @Test
    public void testBooleanQueryWithOptimizeLevel()
            throws Exception {

        String queryString = "ASK {GRAPH <http://example.org/test/g27> {<http://semanticbible.org/ns/2006/NTNames#Shelah1> ?p ?o}}";
        conn.setOptimizeLevel(0);
        BooleanQuery booleanQuery = conn.prepareBooleanQuery(QueryLanguage.SPARQL, queryString);
        boolean results = booleanQuery.evaluate();
        Assert.assertEquals(false, results);
        conn.setOptimizeLevel(null);
    }