### Question:
JMSEndpoint { public String getDurableSubscriptionName() { return durableSubscriptionName; } JMSEndpoint(String endpointUri);  JMSEndpoint(EndpointInfo endpointInfo, EndpointReferenceType target);  JMSEndpoint(EndpointInfo endpointInfo, String endpointUri); String getRequestURI(); final void putJndiParameter(String key, String value); final void putParameter(String key, String value); String getParameter(String key); Map<String, String> getJndiParameters(); Map<String, String> getParameters(); String getEndpointUri(); void setEndpointUri(String endpointUri); ConnectionFactory getConnectionFactory(); void setConnectionFactory(ConnectionFactory connectionFactory); String getJmsVariant(); final void setJmsVariant(String jmsVariant); String getDestinationName(); void setDestinationName(String destinationName); boolean isSetDeliveryMode(); DeliveryModeType getDeliveryMode(); void setDeliveryMode(DeliveryModeType deliveryMode); void setDeliveryMode(String deliveryMode); MessageType getMessageType(); void setMessageType(MessageType messageType); void setMessageType(String messageType); long getTimeToLive(); void setTimeToLive(long timeToLive); void setTimeToLive(String timeToLive); boolean isSetPriority(); int getPriority(); void setPriority(int priority); void setPriority(String priority); String getReplyToName(); void setReplyToName(String replyToName); String getTopicReplyToName(); void setTopicReplyToName(String topicReplyToName); String getJndiConnectionFactoryName(); void setJndiConnectionFactoryName(String jndiConnectionFactoryName); String getJndiInitialContextFactory(); void setJndiInitialContextFactory(String jndiInitialContextFactory); String getJndiURL(); void setJndiURL(String jndiURL); String getUsername(); void setUsername(String username); int getConcurrentConsumers(); void setConcurrentConsumers(int concurrentConsumers); void setConcurrentConsumers(String concurrentConsumers); String getPassword(); void setPassword(String password); String getDurableSubscriptionClientId(); void setDurableSubscriptionClientId(String durableSubscriptionClientId); String getDurableSubscriptionName(); void setDurableSubscriptionName(String durableSubscriptionName); long getReceiveTimeout(); void setReceiveTimeout(long receiveTimeout); void setReceiveTimeout(String receiveTimeout); String getTargetService(); void setTargetService(String targetService); boolean isSessionTransacted(); void setSessionTransacted(boolean sessionTransacted); void setSessionTransacted(String sessionTransacted); String getConduitIdSelectorPrefix(); void setConduitIdSelectorPrefix(String conduitIdSelectorPrefix); boolean isUseConduitIdSelector(); void setUseConduitIdSelector(String useConduitIdSelectorSt); void setUseConduitIdSelector(boolean useConduitIdSelector); String getJndiTransactionManagerName(); void setJndiTransactionManagerName(String jndiTransactionManagerName); String getMessageSelector(); void setMessageSelector(String messageSelector); int getRetryInterval(); void setRetryInterval(int retryInterval); void setRetryInterval(String retryInterval); boolean isOneSessionPerConnection(); void setOneSessionPerConnection(String oneSessionPerConnection); void setOneSessionPerConnection(boolean oneSessionPerConnection); boolean isIgnoreTimeoutException(); void setIgnoreTimeoutException(boolean ignoreTimeoutException); static final String JNDI; static final String TOPIC; static final String QUEUE; static final String JNDI_TOPIC; static final DeliveryModeType DELIVERYMODE_DEFAULT; static final long TIMETOLIVE_DEFAULT; static final int PRIORITY_DEFAULT; static final String JNDI_PARAMETER_NAME_PREFIX; static final String JAXWS_PROPERTY_PREFIX; }### Answer:
@Test public void testJaxWsProps() throws Exception { EndpointInfo ei = new EndpointInfo(); ei.setProperty(JMSEndpoint.JAXWS_PROPERTY_PREFIX + "durableSubscriptionName", TEST_VALUE); JMSEndpoint endpoint = new JMSEndpoint(ei, "jms:queue:Foo.Bar"); assertEquals(endpoint.getDurableSubscriptionName(), TEST_VALUE); }