@Test public void parseTargetAddress_prefersAddress() throws UnknownHostException {

  when(span.isNoop()).thenReturn(false);
  when(span.remoteIpAndPort("1.2.3.4", -1)).thenReturn(true);
  HttpHost host = new HttpHost(InetAddress.getByName("1.2.3.4"), "3.4.5.6", -1, "http");
  TracingHttpAsyncClientBuilder.parseTargetAddress(host, span);
  verify(span).isNoop();
  verify(span).remoteIpAndPort("1.2.3.4", -1);
  verifyNoMoreInteractions(span);
}