@Test
public void testNodeAssignedPerPort() {

  InetAddress startingAddress = Inet4Resolver.inetAddress(AddressResolver.defaultStartingIp);
  int expectedPort = 1000;
  AddressResolver resolver = new NodePerPortResolver(expectedPort);
  for (int i = 0; i < 1000; i++) {
    InetSocketAddress address = (InetSocketAddress) resolver.get();
    assertThat(address.getAddress()).isEqualTo(startingAddress);
    assertThat(address.getPort()).isEqualTo(expectedPort++);
  }
}