### Question:
LdapQueryVisitor extends AbstractUntypedSearchConditionVisitor<T, String> { public void setEncodeQueryValues(boolean encodeQueryValues) { this.encodeQueryValues = encodeQueryValues; } LdapQueryVisitor();  LdapQueryVisitor(Map<String, String> fieldMap); void visit(SearchCondition<T> sc); static String conditionTypeToLdapOperator(ConditionType ct); boolean isEncodeQueryValues(); void setEncodeQueryValues(boolean encodeQueryValues);  }### Answer:
@Test public void testAndQuery() throws SearchParseException { SearchCondition<Condition> filter = parser.parse("name==ami*;level=gt=10"); LdapQueryVisitor<Condition> visitor = new LdapQueryVisitor<>(); visitor.setEncodeQueryValues(false); filter.accept(visitor.visitor()); String ldap = visitor.getQuery(); assertEquals("(&(name=ami*)(level>=10))", ldap); }
@Test public void testOrQuery() throws SearchParseException { SearchCondition<Condition> filter = parser.parse("name==ami*,level=gt=10"); LdapQueryVisitor<Condition> visitor = new LdapQueryVisitor<>(); visitor.setEncodeQueryValues(false); filter.accept(visitor.visitor()); String ldap = visitor.getQuery(); assertEquals("(|(name=ami*)(level>=10))", ldap); }