### Question:
ApplicationStoppedEvent implements Event { @Override public boolean matches(Object otherEvent) { return this.getClass().isAssignableFrom(otherEvent.getClass()); }  @Override boolean matches(Object otherEvent);  }### Answer:
@Test void testApplicationStoppedEvent() { ApplicationStoppedEvent event = new ApplicationStoppedEvent(); assertTrue(event.matches(event)); assertFalse(event.matches(AllEvent.ALLEVENT)); }