@Test
public void filter() throws Exception {

    SearchFilter filter = new SearchFilter(true, true);
    assertFalse(filter.filter(null));
    filter = new SearchFilter(true, false);
    assertFalse(filter.filter(null));
    filter = new SearchFilter(false, true);
    assertFalse(filter.filter(null));
    filter = new SearchFilter(null, null);
    assertFalse(filter.filter(null));
}