### Question:
JmsConsumerId extends JmsAbstractResourceId implements Comparable<JmsConsumerId> { public long getValue() { return value; } JmsConsumerId(String connectionId, long sessionId, long consumerId);  JmsConsumerId(JmsSessionId sessionId, long consumerId);  JmsConsumerId(JmsConsumerId consumerId);  JmsConsumerId(String consumerKey); JmsSessionId getParentId(); String getConnectionId(); long getSessionId(); long getValue(); @Override int hashCode(); @Override boolean equals(Object o); @Override String toString(); @Override int compareTo(JmsConsumerId other);  }### Answer:
@Test public void testJmsSessionIdConstructor() { JmsConsumerId id = new JmsConsumerId(firstId, 1); assertNotNull(id.getValue()); assertNull(id.getProviderHint()); }
@Test public void testJmsConsumerIdFromJmsSessionId() throws Exception { JmsConsumerId id1 = new JmsConsumerId(firstId, 1); JmsConsumerId id2 = new JmsConsumerId(id1); assertSame(id1.getValue(), id2.getValue()); }