message.setProperty("receiptDestination", "test");
sendMessage(connector, messageStore, message);
// retrieve the session
Assert.assertEquals(server.getSessions().size(), 1);
SmppSession session = server.getSessions().iterator().next();
Assert.assertNotNull(session);
DeliverSm deliverSM = new DeliverSm();
deliverSM.setEsmClass(SmppConstants.ESM_CLASS_MT_SMSC_DELIVERY_RECEIPT);
deliverSM.setDestAddress(new Address((byte) 0, (byte) 0, "3002175604"));
deliverSM.setSourceAddress(new Address((byte) 0, (byte) 0, "3542"));
deliverSM.setShortMessage("id:98765432101 sub:1 dlvrd:1 submit date:1101010000 done date:1101010000 stat:DELIVRD err:0 text:This is a ... ".getBytes());
session.sendRequest(deliverSM);
long timeout = 2000;
if (!receiveMessage(messageProducer, timeout)) {
Assert.fail("the delivery receipt was not received");
}