### Question:
SignalizingStateConditionsUpdater implements StateConditionsUpdater { @Override public void update(ReplayingState replayingState, String event) { replayingState.setConditionSatisfied(event); replayingState.signalizeIfSynchronizationEventIsSatisfied(); }  @Override void update(ReplayingState replayingState, String event);  }### Answer:
@Test public void setsConditionAndDelegatesSignalizationIfNeededToReplayingState() { String event = "event"; ReplayingState replayingState = mock(ReplayingState.class); SignalizingStateConditionsUpdater signalizingStateConditionsUpdater = new SignalizingStateConditionsUpdater(); signalizingStateConditionsUpdater.update(replayingState, event); verify(replayingState).setConditionSatisfied(event); verify(replayingState).signalizeIfSynchronizationEventIsSatisfied(); }