@Test
public void testToLong1() {

    String[] split = "127.0.0.1".split("\\.");
    long r = 0;
    r = r | (Long.parseLong(split[0]) << 40);
    r = r | (Long.parseLong(split[1]) << 32);
    r = r | (Long.parseLong(split[2]) << 24);
    r = r | (Long.parseLong(split[3]) << 16);
    r = r | 0;
    assertThat(NetUtil.toLong("127.0.0.1")).isEqualTo(r);
}