assertEquals(DeliveryReceiptState.DELIVRD, smppMessage.getHeader(SmppBinding.FINAL_STATUS));
}
@Test
public void createSmppMessageFromDeliverSmShouldReturnASmppMessage() throws Exception {
DeliverSm deliverSm = new DeliverSm();
deliverSm.setShortMessage("Hello SMPP world!".getBytes());
deliverSm.setSequenceNumber(1);
deliverSm.setCommandId(1);
deliverSm.setSourceAddr("1818");
deliverSm.setDestAddress("1919");
deliverSm.setScheduleDeliveryTime("090831230627004+");
deliverSm.setValidityPeriod("090901230627004+");
SmppMessage smppMessage = binding.createSmppMessage(deliverSm);
assertEquals("Hello SMPP world!", smppMessage.getBody());
assertEquals(6, smppMessage.getHeaders().size());
assertEquals(1, smppMessage.getHeader(SmppBinding.SEQUENCE_NUMBER));