RoundRobinGroupPrioritizer implements GroupPrioritizer<G> { @Override public long computePriority(GroupMetadata<G> metadata) { return 0L; }  @Override long computePriority(GroupMetadata<G> metadata);  }
@Test public void testRoundRobin() { ConcurrentSkipListSet<Elem> set = new ConcurrentSkipListSet<Elem>(); RoundRobinGroupPrioritizer<Elem> prioritizer = new RoundRobinGroupPrioritizer<Elem>(); set.add(new Elem(1,prioritizer.computePriority(null))); set.add(new Elem(2,prioritizer.computePriority(null))); set.add(new Elem(3,prioritizer.computePriority(null))); set.add(new Elem(4,prioritizer.computePriority(null))); Assert.assertEquals(4, set.size()); Assert.assertEquals(1, set.pollLast().id); Assert.assertEquals(2, set.pollLast().id); Assert.assertEquals(3, set.pollLast().id); Assert.assertEquals(4, set.pollLast().id); }