@Test
public void testSimple() throws Exception {

    // Loop through with clock that is always constant.
    ArrayList<Integer> values = new ArrayList<Integer>();
    int delay = 0;
    while (delay < maxDelay) {
        delay = delayManager.getReconnectDelayMs(address);
        values.add(delay);
    }
    // Make sure we get the expected sequence.
    List<Integer> expected = Arrays.asList(100, 200, 400, 800, 1600, 3200, 6400, 10000);
    assertEquals(expected, values);
    // Make sure that next delay is also equal to maxDelay
    assertEquals(maxDelay, delayManager.getReconnectDelayMs(address));
}