@Test
public void testScheduleWithFixedDelayCalledTwice() {

    // given
    TestScheduledRunnable testScheduledRunnable = new TestScheduledRunnable();
    // when
    testScheduledRunnable.scheduleWithFixedDelay(scheduledExecutorService, 0, 1, SECONDS);
    testScheduledRunnable.scheduleWithFixedDelay(scheduledExecutorService, 0, 1, SECONDS);
    // then
    verify(scheduledExecutorService).scheduleWithFixedDelay(testScheduledRunnable, 0, 1,
            SECONDS);
    verifyNoMoreInteractions(scheduledExecutorService);
}