AllEvent implements Event { @Override public boolean matches(Object otherEvent) { return true; } private  AllEvent(); @Override boolean matches(Object otherEvent); static final Event ALLEVENT; }
@Test void allEventMatching() { assertTrue(AllEvent.ALLEVENT.matches(AllEvent.ALLEVENT)); assertTrue(AllEvent.ALLEVENT.matches(null)); }