@Test
public void testBootstrap() {

    String ipAddress = "140.211.11.105";
    String hostName = "www.example.com";
    Cluster cluster = Cluster.bootstrap(Arrays.asList(
            new InetSocketAddress(ipAddress, 9002),
            new InetSocketAddress(hostName, 9002)
    ));
    Set<String> expectedHosts = Utils.mkSet(ipAddress, hostName);
    Set<String> actualHosts = new HashSet<>();
    for (Node node : cluster.nodes())
        actualHosts.add(node.host());
    assertEquals(expectedHosts, actualHosts);
}