@Test
public void testTwo() {

    AndFilter aq = new AndFilter().and(new EqualsFilter("a", "b")).and(
            new EqualsFilter("c", "d"));
    assertThat(aq.encode()).isEqualTo("(&(a=b)(c=d))");
}