### Question:
TransactionStatusEvent { public String getStateAsString () { return state.toString(); } 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 testGetStateAsString() { assertThat(transactionStatusEvent.getStateAsString(), is("Aborting")); }