}
public void testSimpleExpression() {
IvyEventFilter f = new IvyEventFilter("pre-resolve", "organisation = foo", null);
assertTrue(f.accept(new StartResolveEvent(md, new String[] {"default"})));
assertFalse(f.accept(new StartResolveEvent(md2, new String[] {"default"})));
assertTrue(f.accept(new StartResolveEvent(md4, new String[] {"default"})));
f = new IvyEventFilter("pre-resolve", "module = bar", null);
assertTrue(f.accept(new StartResolveEvent(md, new String[] {"default"})));
assertTrue(f.accept(new StartResolveEvent(md2, new String[] {"default"})));
assertFalse(f.accept(new StartResolveEvent(md3, new String[] {"default"})));
assertFalse(f.accept(new StartResolveEvent(md4, new String[] {"default"})));
f = new IvyEventFilter("pre-resolve", "organisation = foo, foo2", null);
assertTrue(f.accept(new StartResolveEvent(md, new String[] {"default"})));
assertTrue(f.accept(new StartResolveEvent(md2, new String[] {"default"})));
assertFalse(f.accept(new StartResolveEvent(md3, new String[] {"default"})));
assertTrue(f.accept(new StartResolveEvent(md4, new String[] {"default"})));
}