Filter filter = new Not(origFilter);
Assert.assertTrue(origFilter.passesFilter(null, item1));
Assert.assertFalse(origFilter.passesFilter(null, item2));
Assert.assertFalse(filter.passesFilter(null, item1));
Assert.assertTrue(filter.passesFilter(null, item2));
}
public void testANotAppliesToProperty() {
Filter filterA = new Not(new SameItemFilter(item1, "a"));
Filter filterB = new Not(new SameItemFilter(item1, "b"));