### Question:
JmsTransactionId extends JmsAbstractResourceId implements Comparable<JmsTransactionId> { @Override public String toString() { return "TX:" + connectionId + ":" + value; } JmsTransactionId(JmsConnectionId connectionId, long transactionId); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object other); @Override int compareTo(JmsTransactionId o); Object getProviderTxId(); long getValue(); JmsConnectionId getConnectionId();  }### Answer:
@Test public void testToString() { JmsTransactionId id = new JmsTransactionId(firstId, 1); String txKey = id.toString(); assertNotNull(txKey); assertTrue(txKey.startsWith("TX:")); }