DnsEndpointGroupBuilder { final String hostname() { return hostname; } DnsEndpointGroupBuilder(String hostname); DnsEndpointGroupBuilder eventLoop(EventLoop eventLoop); DnsEndpointGroupBuilder ttl(int minTtl, int maxTtl); DnsEndpointGroupBuilder queryTimeout(Duration queryTimeout); DnsEndpointGroupBuilder queryTimeoutMillis(long queryTimeoutMillis); DnsEndpointGroupBuilder serverAddresses(InetSocketAddress... serverAddresses); DnsEndpointGroupBuilder serverAddresses(Iterable<InetSocketAddress> serverAddresses); DnsEndpointGroupBuilder backoff(Backoff backoff); DnsEndpointGroupBuilder selectionStrategy(EndpointSelectionStrategy selectionStrategy);  }
@Test void hostname() { assertThat(new Builder("my-host.com").hostname()).isEqualTo("my-host.com"); assertThat(new Builder("MY-HOST.COM").hostname()).isEqualTo("my-host.com"); assertThat(new Builder("아르메리아").hostname()).isEqualTo("xn--2w2b2dxu436ada"); }