Assert.assertTrue(filter1.passesFilter(null, item1));
Assert.assertFalse(filter1.passesFilter(null, item2));
Assert.assertFalse(filter2.passesFilter(null, item1));
Assert.assertFalse(filter2.passesFilter(null, item2));
}
public void testThreeFilterAnd() {
Filter filter1 = new And(new SameItemFilter(item1), new SameItemFilter(
item1), new SameItemFilter(item1));