}
@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());
Assert.assertEquals(new DateTime(2011, 3, 14, 18, 15, 34, 0, DateTimeZone.UTC), dlr.getSubmitDate());