given(this.delegate.getExceptionHandler()).willReturn(exceptionHandler);
ExceptionHandler actual = this.factory.getExceptionHandler();
assertThat(actual, is(SpringExceptionHandler.class));
assertThat(((SpringExceptionHandler) actual).getWrapped(), is(sameInstance(exceptionHandler)));
// Check that the delegate is called
actual.handle();
verify(exceptionHandler).handle();
}
}