### Question:
DefaultUntypedRecordableEvent implements UntypedRecordableEvent, TargetableEvent { @Override public boolean matches(Object otherEvent) { return otherEvent != null && otherEvent instanceof UntypedRecordableEvent; } DefaultUntypedRecordableEvent(String eventType);   DefaultUntypedRecordableEvent();   DefaultUntypedRecordableEvent(String eventType, Set<String> target); @Override String getEventType(); @Override boolean matches(Object otherEvent); @Override Set<String> getTarget();  }### Answer:
@Test public void matchesWithCorrectEvent() throws Exception { assertTrue(this.defaultUntypedRecordableEvent.matches( new DefaultUntypedRecordableEvent("otherEvent"))); }
@Test public void matchesWithNullObject() throws Exception { assertFalse(this.defaultUntypedRecordableEvent.matches(null)); }
@Test public void matchesWithIncorrectObject() throws Exception { assertFalse(this.defaultUntypedRecordableEvent.matches(new RandomRecordableEvent())); }