@Test
  public void getSocketInetAddress_returns_unresolved_SocketAddress() {
    HostAndPort locator1 = new HostAndPort("fakelocalhost", 8090);

    InetSocketAddress actual = locator1.getSocketInetAddress();

    assertThat(actual.isUnresolved())
        .as("Hostname resolved unexpectedly. Check for DNS hijacking in addition to code errors.")
        .isTrue();
  }
Test that getSocketInentAddress returns unresolved InetSocketAddress
geode-tcp-server/src/test/java/org/apache/geode/distributed/internal/tcpserver/HostAndPortTest.java