### Question:
ApplicationStartupEvent extends AbstractEvent { @Override public String toString() { return getClass().getSimpleName(); }  @Override String toString();  }### Answer:
@Test public void shouldOverwriteToString() throws Exception { String toString = new ApplicationStartupEvent().toString(); assertTrue(toString.contains(ApplicationStartupEvent.class.getSimpleName())); }