@Test
public void listConstructor() {

    List<NodeAddress> nodes = new ArrayList<>();
    nodes.add( new NodeAddress("127.0.0.1",8000) );
    nodes.add( new NodeAddress("127.0.0.1",8001) );
    ConstNodeDiscovery discovery = new ConstNodeDiscovery(nodes);
    Assert.assertArrayEquals( nodes.toArray(), discovery.getNodeAddresses().toArray() );
}