@Test
public void testMasksV6() throws UnknownHostException {

    InetAddress mask = InetAddress.getByName("ff00::0");
    assertTrue(mask.equals(NetUtils.getInetNetworkMask(8, true)));
    mask = InetAddress.getByName("8000::0");
    assertTrue(mask.equals(NetUtils.getInetNetworkMask(1, true)));
    mask = InetAddress.getByName("f800::0");
    assertTrue(mask.equals(NetUtils.getInetNetworkMask(5, true)));
    mask = InetAddress.getByName("ffff:ffff:ffff:ffff:ffff:ffff:ffff:fffe");
    assertTrue(mask.equals(NetUtils.getInetNetworkMask(127, true)));
}