MessageReference ref = createReference(0, false, "payload");
SimpleDeliveryObserver observer = new SimpleDeliveryObserver();
// non-transacted send, non-reliable message, one message
Delivery delivery = queue.handle(observer, ref, null);
assertTrue(delivery.isDone());
assertTrue(queue.browse().isEmpty());
List received = r.getMessages();
assertEquals(1, received.size());
Message sm = (Message)received.iterator().next();