@Test public void allowsOddRates() {

    mockStatic(System.class);
    Reservoir reservoir = new Reservoir(11);
    when(System.nanoTime()).thenReturn(NANOS_PER_SECOND);
    assertTrue(reservoir.take());
    when(System.nanoTime()).thenReturn(NANOS_PER_SECOND + NANOS_PER_DECISECOND * 9);
    for (int i = 1; i < 11; i++) {
        assertTrue("failed after " + (i + 1), reservoir.take());
    }
    assertFalse(reservoir.take());
}