### Question:
Address { private InetAddress resolveAddress() { try { return InetAddress.getByName(host); } catch (UnknownHostException e) { return null; } } Address(String host, int port);  Address(String host, int port, InetAddress address); static Address local(); static Address from(String address); static Address from(String host, int port); static Address from(int port); String host(); int port(); InetAddress address(); InetAddress address(boolean resolve); Type type(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }### Answer:
@Test @Ignore public void testResolveAddress() throws Exception { Address address = Address.from("localhost", 5000); assertEquals("127.0.0.1", address.address().getHostAddress()); assertEquals(5000, address.port()); }