### Question:
Murmur3PartitionerTokenRing implements TokenRing { @Override public double getRingFraction(String start, String end) { return getTokenCountInRange(start, end).doubleValue() / TOTAL_TOKEN_COUNT.doubleValue(); } private  Murmur3PartitionerTokenRing(); @Override double getRingFraction(String start, String end); @Override BigInteger getTokenCountInRange(String startToken, String endToken); static final Murmur3PartitionerTokenRing INSTANCE; }### Answer:
@Test public void testGetRingFraction() { assertEquals(tokenRing.getRingFraction("1", "1"), 0.0, 0.001); assertEquals(tokenRing.getRingFraction("1", "0"), 1.0, 0.001); assertEquals(tokenRing.getRingFraction("0", Long.toString(Long.MAX_VALUE)), 0.5, 0.001); assertEquals(tokenRing.getRingFraction(Long.toString(Long.MIN_VALUE), Long.toString(Long.MAX_VALUE)), 1.0, 0.001); assertEquals(tokenRing.getRingFraction(Long.toString(Long.MIN_VALUE), Long.toString(Long.MIN_VALUE)), 1.0, 0.001); }