@Test
public void testSerialize() {

    Ethernet ethernet = new Ethernet()
        .setDestinationMACAddress("de:ad:be:ef:de:ad")
        .setSourceMACAddress("be:ef:de:ad:be:ef")
        .setEtherType(EthType.of(0));
    byte[] expected = new byte[] { (byte) 0xde, (byte) 0xad, (byte) 0xbe,
            (byte) 0xef, (byte) 0xde, (byte) 0xad, (byte) 0xbe,
            (byte) 0xef, (byte) 0xde, (byte) 0xad, (byte) 0xbe,
            (byte) 0xef, 0x0, 0x0 };
    assertTrue(Arrays.equals(expected, ethernet.serialize()));
}