Assert.assertEquals(98765432101L, DeliveryReceipt.toMessageIdAsLong("16fee0e525"));
}
@Test
public void parseReceiptWithMissingSubAndDlvrdFields() throws Exception {
PduTranscoderContext context = new DefaultPduTranscoderContext();
PduTranscoder transcoder = new DefaultPduTranscoder(context);
DeliveryReceipt dlr = DeliveryReceipt.parseShortMessage("id:2E179B310EDE971B2760C72B7F026E1B submit date:20110314181534 done date:20110314181741 stat:DELIVRD err:0", DateTimeZone.UTC, false);
Assert.assertEquals("2E179B310EDE971B2760C72B7F026E1B", dlr.getMessageId());
Assert.assertEquals(-1, dlr.getSubmitCount());
Assert.assertEquals(-1, dlr.getDeliveredCount());