@Test
public void testReplicationFactorOf1() {

    cpConfig.setLoadBalancingStrategy(LoadBalancingStrategy.TokenAware);
    cpConfig.withTokenSupplier(getTokenMapSupplier());
    HostSelectionWithFallback<Integer> selection = new HostSelectionWithFallback<Integer>(cpConfig, cpMonitor);
    List<HostToken> hostTokens = Arrays.asList(
            new HostToken(1111L, h1),
            new HostToken(2222L, h2),
            new HostToken(3333L, h3),
            new HostToken(4444L, h4)
    );
    int rf = selection.calculateReplicationFactor(hostTokens);
    Assert.assertEquals(1, rf);
}