ServerEvent { @Override public String toString() { return this.type + "@" + this.server + "[" + this.newData + "]"; } ServerEvent(final Server server, final int type);  ServerEvent(final Server server, final int type, final Object data); @Override String toString();  }
@Test public void testToString() { final ServerEvent event = new ServerEvent(null, 0); assertNotNull(event.toString()); }