### Question:
NodeInfo { public String hostname() { return hostname; } @JsonCreator  NodeInfo(
        @JsonProperty("couchApiBase") String viewUri,
        @JsonProperty("hostname") String hostname,
        @JsonProperty("ports") Map<String, Integer> ports,
        @JsonProperty("alternateAddresses") Map<String, AlternateAddress> alternateAddresses);  NodeInfo(String hostname, Map<ServiceType, Integer> direct,
                    Map<ServiceType, Integer> ssl, Map<String, AlternateAddress> alternateAddresses); String hostname(); NodeIdentifier identifier(); Map<ServiceType, Integer> services(); Map<ServiceType, Integer> sslServices(); Map<String, AlternateAddress> alternateAddresses(); @Override String toString();  }### Answer:
@Test void shouldExposeRawHostnameFromConstruction() { assertEquals( "localhost", new NodeInfo(null, "localhost:8091", new HashMap<>(), null).hostname() ); assertEquals( "127.0.0.1", new NodeInfo(null, "127.0.0.1:8091", new HashMap<>(), null).hostname() ); }