@Test
public void itShouldMapRuntimeExceptionCausedByDomainServiceException() {

    DomainServiceException domainServiceException = mock(DomainServiceException.class);
    RuntimeException runtimeException = new RuntimeException(domainServiceException);
    Response expected = mock(Response.class);
    when(domainServiceExceptionMapper.toResponse(domainServiceException)).thenReturn(expected);
    Response actual = mapper.toResponse(runtimeException);
    verify(domainServiceExceptionMapper).toResponse(domainServiceException);
    assertThat(actual).isSameAs(expected);
}