@Test
public void testToIPv4AddressBytes() {

    byte[] expected = new byte[] {(byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff};
    Assert.assertArrayEquals(expected, IPv4.toIPv4AddressBytes("255.255.255.255"));
    expected = new byte[] {(byte) 0x80, (byte) 0x80, (byte) 0x80, (byte) 0x80};
    Assert.assertArrayEquals(expected, IPv4.toIPv4AddressBytes("128.128.128.128"));
    expected = new byte[] {0x7f,0x7f,0x7f,0x7f};
    Assert.assertArrayEquals(expected, IPv4.toIPv4AddressBytes("127.127.127.127"));
}