@Test
public void testProcessWhenApplicationExceptionIsThrownShouldLogError() throws ApplicationException {

    // GIVEN
    ApplicationException e = new ApplicationException("exception");
    given(responseTransformer.transformResponse(response)).willReturn(wilmaResponse);
    BDDMockito.willThrow(e).given(responseHandler).processResponse(wilmaResponse);
    // WHEN
    underTest.process(response);
    // THEN
    verify(logger).error("exception", e);
}