### Question:
JmsConsumerInfo extends JmsAbstractResource implements Comparable<JmsConsumerInfo> { public String getSubscriptionName() { return subscriptionName; } JmsConsumerInfo(JmsConsumerId consumerId, JmsMessageDispatcher dispatcher); JmsConsumerInfo copy(); @Override JmsConsumerId getId(); boolean isBrowser(); void setBrowser(boolean browser); boolean isListener(); void setListener(boolean listener); JmsDestination getDestination(); void setDestination(JmsDestination destination); int getPrefetchSize(); void setPrefetchSize(int prefetchSize); String getSelector(); void setSelector(String selector); boolean isExplicitClientID(); void setExplicitClientID(boolean explicitClientID); boolean isDurable(); void setDurable(boolean durable); String getSubscriptionName(); void setSubscriptionName(String durableSubscriptionId); boolean isShared(); void setShared(boolean shared); boolean isNoLocal(); void setNoLocal(boolean noLocal); void setLastDeliveredSequenceId(long lastDeliveredSequenceId); long getLastDeliveredSequenceId(); JmsSessionId getParentId(); int getAcknowledgementMode(); void setAcknowledgementMode(int acknowledgementMode); boolean isLocalMessageExpiry(); void setLocalMessageExpiry(boolean localMessageExpiry); JmsRedeliveryPolicy getRedeliveryPolicy(); void setRedeliveryPolicy(JmsRedeliveryPolicy redeliveryPolicy); JmsDeserializationPolicy getDeserializationPolicy(); void setDeserializationPolicy(JmsDeserializationPolicy deserializationPolicy); boolean isPresettle(); void setPresettle(boolean presettle); boolean isConnectionConsumer(); void setConnectionConsumer(boolean connectionConsumer); int getMaxMessages(); void setMaxMessages(int maxMessages); JmsMessageDispatcher getDispatcher(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); @Override int compareTo(JmsConsumerInfo other); @Override void visit(JmsResourceVistor vistor);  }### Answer:
@Test public void testGetSubscriptionName() { String subName = "name"; JmsConsumerInfo info = new JmsConsumerInfo(firstId, null); assertNull(info.getSubscriptionName()); info.setSubscriptionName(subName); assertEquals(subName, info.getSubscriptionName()); }