VotingHostsFromTokenRange implements VotingHostsSelector { @Override public int getVotingSize() { return calculatedVotingSize.get(); } VotingHostsFromTokenRange(HostSupplier hostSupplier, TokenMapSupplier tokenMapSupplier, int votingSize); @Override CircularList<Host> getVotingHosts(); @Override int getVotingSize();  }
@Test public void getVotingSize() { IntStream.range(1, 6).filter(i -> i%2 != 0).forEach(i -> testVotingSize(i)); }