@Test
public void testChooseWhenFailure() {

    SingleServiceLoadBalancer singleLB = newSingleLB();
    InstanceInfo first = takeNextOrFail(singleLB);
    singleLB.recordFailure(first);
    InstanceInfo healthy = first == INSTANCE_1 ? INSTANCE_2 : INSTANCE_1;
    assertThat(asList(takeNextOrFail(singleLB), takeNextOrFail(singleLB))).contains(healthy, healthy);
    // Move time past quarantine period
    testClock.advanceTime(1, TimeUnit.HOURS);
    assertThat(asList(takeNextOrFail(singleLB), takeNextOrFail(singleLB))).contains(INSTANCE_1, INSTANCE_2);
}