@Test
public void computeGlobalSegmentCountSingleTokenPerNodeTest() {

  Map<List<String>, List<String>> rangeToEndpoint = Maps.newHashMap();
  for (int i = 0; i < 3; i++) {
    rangeToEndpoint.put(
        Arrays.asList(i + "", (i + 1) + ""), Arrays.asList("node1", "node2", "node3"));
  }
  Map<String, List<RingRange>> endpointToRange = Maps.newHashMap();
  endpointToRange.put("node1", Lists.newArrayList());
  endpointToRange.put("node2", Lists.newArrayList());
  endpointToRange.put("node3", Lists.newArrayList());
  assertEquals(48, RepairRunService.computeGlobalSegmentCount(0, endpointToRange));
}