@Test
public void testValueOf() {

    MACAddress address = MACAddress.valueOf("00:01:02:03:04:05");
    assertEquals(address,
            MACAddress.valueOf(new byte[]{0x00, 0x01, 0x02, 0x03, 0x04, 0x05}));
    assertEquals("00:01:02:03:04:05", address.toString());
    address = MACAddress.valueOf("FF:FE:FD:10:20:30");
    assertEquals(address,
            MACAddress.valueOf(new byte[]{(byte) 0xFF, (byte) 0xFE, (byte) 0xFD, 0x10, 0x20, 0x30}));
    assertEquals("FF:FE:FD:10:20:30", address.toString());
    
    address = MACAddress.valueOf("00:11:22:aa:bb:cc");
    assertEquals(address,
            MACAddress.valueOf(new byte[]{0x00, 0x11, 0x22, (byte)0xaa, (byte)0xbb, (byte)0xcc}));
}