@Parameters(source = State.class)
@Test
public void shouldDecorateMDC(State state) {

  when(runState.state()).thenReturn(state);
  when(runState.counter()).thenReturn(COUNTER);
  var id = new AtomicReference<String>();
  var stateCounter = new AtomicReference<String>();
  var stateName = new AtomicReference<String>();
  doAnswer(a -> {
    id.set(MDC.get("wfi-id"));
    stateCounter.set(MDC.get("wfi-state-counter"));
    stateName.set(MDC.get("wfi-state-name"));
    return null;
  }).when(delegate).transitionInto(any(), any());
  sut.transitionInto(runState, eventRouter);
  assertThat(id.get(), is(WORKFLOW_INSTANCE.toString()));
  assertThat(stateCounter.get(), is(String.valueOf(COUNTER)));
  assertThat(stateName.get(), is(state.toString()));
}