SimpleReceiver r = new SimpleReceiver("NackingReceiver", SimpleReceiver.ACCEPTING);
r.setImmediateAsynchronousAcknowledgment(true);
assertTrue(queue.add(r));
MessageReference ref = createReference(0, true, "payload");
SimpleDeliveryObserver observer = new SimpleDeliveryObserver();
// non-transacted send, reliable message, one message
Delivery delivery = queue.handle(observer, ref, null);
assertTrue(delivery.isDone());