@Test
public void getDeliveryMode() throws Exception {

	URI uri = new URI("jms:RequestQueue?deliveryMode=NON_PERSISTENT");
	int deliveryMode = JmsTransportUtils.getDeliveryMode(uri);
	assertEquals("Invalid deliveryMode", DeliveryMode.NON_PERSISTENT, deliveryMode);
	uri = new URI("jms:RequestQueue?deliveryMode=PERSISTENT");
	deliveryMode = JmsTransportUtils.getDeliveryMode(uri);
	assertEquals("Invalid deliveryMode", DeliveryMode.PERSISTENT, deliveryMode);
	uri = new URI("jms:RequestQueue?replyToName=RESP_QUEUE");
	deliveryMode = JmsTransportUtils.getDeliveryMode(uri);
	assertEquals("Invalid deliveryMode", Message.DEFAULT_DELIVERY_MODE, deliveryMode);
}