@Test
public void timeoutTriggered_contextCallbackAdded_callbackTriggered() {

    // given
    int delayInSec = 5;
    Object expectedData = new Object();
    Date expectedTimeoutIn = new Date(clock.now().getTime() + TimeUnit.SECONDS.toMillis(delayInSec));
    TimeoutExpirationCallback expiredCallback = mock(TimeoutExpirationCallback.class);
    sut.addExpiredCallback(expiredCallback);
    Timeout expected = Timeout.create(UUIDTimeoutId.generateNewId(), "theSagaId", "theTimeoutName", expectedTimeoutIn, expectedData);
    // when
    requestAndTriggerTimeout(expected.getSagaId(), expected.getName(), delayInSec, TimeUnit.SECONDS, expectedData);
    // then
    verify(expiredCallback).expired(isA(Timeout.class), isA(TimeoutExpirationContext.class));
}