### Question:
AbstractJmsClient { protected Destination createDestination(String destName) throws JMSException { String simpleName = getSimpleName(destName); byte destinationType = getDestinationType(destName); if (destinationType == ActiveMQDestination.QUEUE_TYPE) { LOG.info("Creating queue: {}", destName); return getSession().createQueue(simpleName); } else if (destinationType == ActiveMQDestination.TOPIC_TYPE) { LOG.info("Creating topic: {}", destName); return getSession().createTopic(simpleName); } else { return createTemporaryDestination(destName); } } AbstractJmsClient(ConnectionFactory factory); abstract JmsClientProperties getClient(); abstract void setClient(JmsClientProperties client); ConnectionFactory getFactory(); void setFactory(ConnectionFactory factory); int getDestCount(); void setDestCount(int destCount); int getDestIndex(); void setDestIndex(int destIndex); String getClientName(); void setClientName(String clientName); Connection getConnection(); Session getSession(); Destination[] createDestinations(int destCount); boolean commitTxIfNecessary(); static final String DESTINATION_SEPARATOR; }### Answer:
@Test public void testCreateDestination() throws JMSException { assertDestinationNameType("dest", TOPIC_TYPE, asAmqDest(jmsClient.createDestination("dest"))); }
@Test public void testCreateDestination_topic() throws JMSException { assertDestinationNameType("dest", TOPIC_TYPE, asAmqDest(jmsClient.createDestination("topic: }
@Test public void testCreateDestination_queue() throws JMSException { assertDestinationNameType("dest", QUEUE_TYPE, asAmqDest(jmsClient.createDestination("queue: }
@Test public void testCreateDestination_tempQueue() throws JMSException { assertDestinationType(TEMP_QUEUE_TYPE, asAmqDest(jmsClient.createDestination("temp-queue: }
@Test public void testCreateDestination_tempTopic() throws JMSException { assertDestinationType(TEMP_TOPIC_TYPE, asAmqDest(jmsClient.createDestination("temp-topic: }