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