@Test
public void testGetConnectionsFromRingNormal() throws Exception {

    HostSelectionWithFallback<Integer> selection = new HostSelectionWithFallback<Integer>(cpConfig, cpMonitor);
    Map<Host, HostConnectionPool<Integer>> pools = new HashMap<Host, HostConnectionPool<Integer>>();
    for (Host host : hosts) {
        poolStatus.put(host, new AtomicBoolean(true));
        pools.put(host, getMockHostConnectionPool(host, poolStatus.get(host)));
    }
    selection.initWithHosts(pools);
    Collection<String> hostnames = runConnectionsToRingTest(selection);
    verifyExactly(hostnames, "h1", "h2");
}