@Test
public void varArgConstructor() {

    NodeAddress a = new NodeAddress("127.0.0.1",8000);
    NodeAddress b = new NodeAddress("127.0.0.1",8000);
    ConstNodeDiscovery discovery = new ConstNodeDiscovery(a, b);
    List<NodeAddress> nodes = discovery.getNodeAddresses();
    Assert.assertEquals( nodes.get(0), a );
    Assert.assertEquals( nodes.get(1), b );
}