@Test
public void arrayConstructor() {

    NodeAddress[] nodes = new NodeAddress[]{
        new NodeAddress("127.0.0.1",8000),
        new NodeAddress("127.0.0.1",8001)
    };
    ConstNodeDiscovery discovery = new ConstNodeDiscovery(nodes);
    Assert.assertArrayEquals( nodes, discovery.getNodeAddresses().toArray() );
}