public static InetAddress getLocalAddress() {
        return getLocalAddress(null);
    }
@Test
    public void testGetLocalAddress() {
        InetAddress address = NetUtils.getLocalAddress();
        Assert.assertNotNull(address);
        Assert.assertTrue(NetUtils.isValidAddress(address));
        try {
            if(NetUtils.isValidAddress(InetAddress.getLocalHost())){
                Assert.assertEquals(InetAddress.getLocalHost(), address);
            }
        } catch (UnknownHostException e) {
            e.printStackTrace();
        }
    }