public T get(int key)
  {
    if (_points.isEmpty())
    {
      debug(_log, "get called on a hash ring with nothing in it");

      return null;
    }

    int index = getIndex(key);

    return _points.get(index).getT();
  }
@Test(groups = { "small", "back-end" })
  public void test2ItemsWithOnePoint()
      throws URISyntaxException
  {
    Map<URI, Integer> pointsMap = new HashMap<>();
    URI uri1 = new URI("http://ext23.corp.linkedin.com:231/ajdi");
    URI uri2 = new URI("http://ext66.corp.linkedin.com:231/ajdi");
    pointsMap.put(uri1, 1);
    pointsMap.put(uri2, 1);
    ConsistentHashRing<URI> test = new ConsistentHashRing<>(pointsMap);
    //we will produce 2 points with value -590810423 for uri1 and 742698789 for uri2
    //test edge case
    URI lowEdgeUri = test.get(-600000000);
    URI highEdgeUri = test.get(800000000);
    URI midURI = test.get(0);
    assertEquals(lowEdgeUri, uri1);
    assertEquals(highEdgeUri, uri1);
    assertEquals(midURI, uri2);

  }