@Test
void errorResponseWithErrorCodeException() {

    var expected = new ErrorResponse();
    expected.id = "actionId";
    expected.message = "test message";
    expected.errorCode = "TEST_ERROR_CODE";
    expected.severity = "WARN";
    var response = handler.errorResponse(new NotFoundException("test message", "TEST_ERROR_CODE"), WebServiceClient.USER_AGENT, "actionId");
    assertThat(response).isInstanceOf(ErrorResponse.class)
            .usingRecursiveComparison().ignoringFields("stackTrace")
            .isEqualTo(expected);
}