@Test
public void refillShouldReturn10() {

    TestTicker testTicker = createTestTicker();
    Stopwatch stopwatch = Stopwatch.createStarted(testTicker);
    testTicker.setNanos(TimeUnit.SECONDS.toNanos(9));
    RefillStrategy refillStrategy = new FixedIntervalRefillStrategy(stopwatch, 1, 1, TimeUnit.SECONDS);
    assertEquals(10, refillStrategy.refill());
}