RandomPacketTester.testClass(UdpPacket.class, packet);
}
@Test
public void testGetHeader() {
UdpHeader h = packet.getHeader();
assertEquals(srcPort, h.getSrcPort());
assertEquals(dstPort, h.getDstPort());
assertEquals(length, h.getLength());
assertEquals(checksum, h.getChecksum());
UdpPacket.Builder b = packet.getBuilder();
UdpPacket p;
b.length((short)0);