@Test
void errorResponse() {

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