### Question:
JmsTransactionInfo extends JmsAbstractResource implements Comparable<JmsTransactionInfo> { public JmsTransactionInfo copy() { return new JmsTransactionInfo(sessionId, transactionId); } JmsTransactionInfo(JmsSessionId sessionId, JmsTransactionId transactionId); JmsTransactionInfo copy(); @Override JmsTransactionId getId(); JmsSessionId getSessionId(); boolean isInDoubt(); void setInDoubt(boolean inDoubt); @Override int hashCode(); @Override boolean equals(Object obj); @Override int compareTo(JmsTransactionInfo other); @Override String toString(); @Override void visit(JmsResourceVistor visitor);  }### Answer:
@Test public void testCopy() { JmsTransactionInfo info = new JmsTransactionInfo(firstSessionId, firstTxId); JmsTransactionInfo copy = info.copy(); assertEquals(info, copy); }