### Question:
HostPort { public String getHost() { return host; } HostPort(String host, int port); String getHost(); int getPort(); String getHostPort(); static HostPort parseHostPort(String string);  }### Answer:
@Test public void testGetHost() { HostPort hostPort = new HostPort("127.0.0.1", 2181); assertTrue(hostPort.getHost().equals("127.0.0.1")); }