@Test
public void newManualModeTask_returns_instance_of_DelegateManualModeTask_with_correct_fields() {

    // when
    CircuitBreaker.ManualModeTask<Integer> manualTask = wrapper.newManualModeTask();
    // then
    assertThat(manualTask).isInstanceOf(CircuitBreakerDelegate.DelegateManualModeTask.class);
    CircuitBreakerDelegate.DelegateManualModeTask dmmt = (CircuitBreakerDelegate.DelegateManualModeTask)manualTask;
    assertThat(dmmt.delegate).isSameAs(delegateManualModeTaskMock);
    assertThat(dmmt.eventConverter).isSameAs(wrapper.eventConverter);
    assertThat(dmmt.originatingCircuitBreaker).isSameAs(wrapper);
    assertThat(dmmt.originatingCircuitBreaker()).isSameAs(wrapper);
}