public static boolean isUp(NetworkInterface ifc)  {
        try {
            return ifc.isUp();
        } catch (SocketException e) {
            LOG.debug("Network interface can not get isUp, exception: ", e);
        }
        return false;
    }
@Test
    void testisUp() throws SocketException {
        NetworkInterface nic = mock(NetworkInterface.class);
        when(nic.isUp()).thenReturn(true);
        assertTrue(InetUtils.isUp(nic));
        
        when(nic.isUp()).thenReturn(false);
        assertFalse(InetUtils.isUp(nic));
        
        when(nic.isUp()).thenThrow(new SocketException());
        assertFalse(InetUtils.isUp(nic));
    }