@Test
public void testGetSubnetPrefix() throws UnknownHostException {

    InetAddress ip = InetAddress.getByName("192.128.64.252");
    int maskLen = 25;
    assertTrue(NetUtils.getSubnetPrefix(ip, maskLen).equals(InetAddress.getByName("192.128.64.128")));
}