### Question:
JmsConnectionId extends JmsAbstractResourceId implements Comparable<JmsConnectionId> { @Override public int compareTo(JmsConnectionId o) { return value.compareTo(o.value); } JmsConnectionId(String connectionId);  JmsConnectionId(JmsConnectionId id);  JmsConnectionId(JmsSessionId id);  JmsConnectionId(JmsProducerId id);  JmsConnectionId(JmsConsumerId id); String getValue(); @Override int hashCode(); @Override boolean equals(Object o); @Override String toString(); @Override int compareTo(JmsConnectionId o);  }### Answer:
@Test public void testCompareTo() { JmsConnectionId id1 = new JmsConnectionId(firstId); JmsConnectionId id2 = new JmsConnectionId(secondId); assertFalse(id1.compareTo(id2) == 0); }