### Question:
NetUtil { public static InetAddress getLocalAddress() { if (LOCAL_ADDRESS != null) { return LOCAL_ADDRESS; } InetAddress localAddress = getLocalAddress0(); LOCAL_ADDRESS = localAddress; return localAddress; }  static String toStringAddress(SocketAddress address); static String toIpAddress(SocketAddress address); static String toStringAddress(InetSocketAddress address); static InetSocketAddress toInetSocketAddress(String address); static long toLong(String address); static String getLocalIp(); static String getLocalHost(); static InetAddress getLocalAddress(); static void validAddress(InetSocketAddress address); static boolean isValidIp(String ip, boolean validLocalAndAny);  }### Answer:
@Test public void testGetLocalAddress() { assertThat(NetUtil.getLocalAddress()).isNotNull(); }