### Question:
TransactionStatusEvent { public String toString() { return String.format("%02d %08d %s %s", session, id, state.toString(), info); } TransactionStatusEvent(int session, State state, long id, String info, Serializable context); String toString(); int getSession(); long getId(); String getInfo(); State getState(); String getStateAsString(); Serializable getContext();  }### Answer:
@Test public void testToString() { String expected = "01 00000002 Aborting inforString"; assertThat(transactionStatusEvent.toString(), is(expected)); }