@Test
public void testDeserialize() throws Exception {

    Ethernet ethernet = (Ethernet) new Ethernet().deserialize(pkt, 0, pkt.length);
    ethernet.setPad(true);
    assertTrue(Arrays.equals(pkt, ethernet.serialize()));
    IPacket expected = getPacket();
    assertEquals(expected, ethernet);
}