assertEquals(SmppMessageType.DeliverSm.toString(), smppMessage.getHeader(SmppConstants.MESSAGE_TYPE));
}
@Test
public void createSmppMessageFromDataSmShouldReturnASmppMessage() throws Exception {
DataSm dataSm = new DataSm();
dataSm.setSequenceNumber(1);
dataSm.setCommandId(1);
dataSm.setCommandStatus(0);
dataSm.setSourceAddr("1818");
dataSm.setSourceAddrNpi(NumberingPlanIndicator.NATIONAL.value());
dataSm.setSourceAddrTon(TypeOfNumber.NATIONAL.value());
dataSm.setDestAddress("1919");
dataSm.setDestAddrNpi(NumberingPlanIndicator.NATIONAL.value());
dataSm.setDestAddrTon(TypeOfNumber.NATIONAL.value());
dataSm.setServiceType("WAP");
dataSm.setRegisteredDelivery((byte) 0);
SmppMessage smppMessage = binding.createSmppMessage(dataSm, "1");
assertNull(smppMessage.getBody());
assertEquals(14, smppMessage.getHeaders().size());
assertEquals("1", smppMessage.getHeader(SmppConstants.ID));