### Question:
AlertMessage { @Override public String toString() { return "AlertMessage{" + "event='" + event + '\'' + ", alert='" + alert + '\'' + ", error='" + error + '\'' + '}'; } AlertMessage(String event, String alert, String error); String getEvent(); String getAlert(); String getError(); @Override String toString();  }### Answer:
@Test public void testToString() throws Exception { Assert.assertEquals(alertMessage.toString(), "AlertMessage{event='event', alert='alert', error='error'}"); }