@Test
public void mergeTest() {

  List<RingRange> ranges = Lists.newArrayList();
  ranges.add(new RingRange(BigInteger.valueOf(30L), BigInteger.valueOf(50L)));
  ranges.add(new RingRange(BigInteger.valueOf(10L), BigInteger.valueOf(30L)));
  ranges.add(new RingRange(BigInteger.valueOf(80L), BigInteger.valueOf(10L)));
  RingRange merged = RingRange.merge(ranges);
  assertEquals("80", merged.getStart().toString());
  assertEquals("50", merged.getEnd().toString());
}