### Question:
NetUtil { public static String getLocalHost() { InetAddress address = getLocalAddress(); return address == null ? LOCAL_HOST : address.getHostAddress(); }  static String getLocalHost(); static InetAddress getLocalAddress(); static InetAddress getLocalIpV4Adress(); static String getIpByHost(String hostName); static String toIpPort(InetSocketAddress address); static String toIP(InetSocketAddress address); static int toPort(InetSocketAddress address); static String toHostPort(InetSocketAddress address); static InetSocketAddress toAddress(String address); static int getAvailablePort(int defaultPort); static boolean isIpPortStr(String str); static boolean isPortInUse(int port); static final String LOCAL_HOST; static final String ANY_HOST; static final int MAX_PORT; }### Answer:
@Test public void testGetLocalHost() { try { NetUtil.getLocalHost(); } catch (Exception e) { Assert.fail(e.getMessage()); } }