@Test
public void testSQL4WithTLStateAndSingleThread() throws SearchParseException {
SearchCondition<Condition> filter = parser.parse("(name==test,level==18);(name==test1,level!=19)");
SQLPrinterVisitor<Condition> visitor = new SQLPrinterVisitor<Condition>("table");
visitor.setVisitorState(new SBThreadLocalVisitorState());
filter.accept(visitor);
String sql = visitor.getQuery();
assertTrue(("SELECT * FROM table WHERE ((name = 'test') OR (level = '18'))"
+ " AND ((name = 'test1') OR (level <> '19'))").equals(sql)