Assert.assertEquals(0x00, pdu0.getDefaultMsgId());
Assert.assertEquals(0, pdu0.getShortMessageLength());
Assert.assertArrayEquals(HexUtil.toByteArray(""), pdu0.getShortMessage());
Assert.assertEquals(3, pdu0.getOptionalParameters().size());
Tlv tlv0 = pdu0.getOptionalParameter(SmppConstants.TAG_SOURCE_NETWORK_TYPE);
Assert.assertEquals(0x01, tlv0.getValueAsByte());
Tlv tlv1 = pdu0.getOptionalParameter(SmppConstants.TAG_DEST_NETWORK_TYPE);
Assert.assertEquals(0x01, tlv1.getValueAsByte());
Tlv tlv2 = pdu0.getOptionalParameter(SmppConstants.TAG_MESSAGE_PAYLOAD);
Assert.assertArrayEquals(HexUtil.toByteArray("404d616964656e6d616e363634207761732069742073617070793f2026526f6d616e7469633f"), tlv2.getValue());
// interesting -- this example has optional parameters it happened to skip...
Assert.assertEquals(0, buffer.readableBytes());
}