@Test
public void testNetmaskFromCidr() {

    long mask = NetUtils.netMaskFromCidr(1l);
    assertEquals("mask not right: " + mask, 0x80000000, mask);
    mask = NetUtils.netMaskFromCidr(32l);
    assertEquals("mask not right: " + mask, 0xffffffff, mask);
}