@Test
void ajaxErrorResponse() {

    var expected = new AJAXErrorResponse();
    expected.id = "actionId";
    expected.message = "test message";
    expected.errorCode = "INTERNAL_ERROR";
    var response = handler.errorResponse(new Error("test message"), "Mozilla/5.0", "actionId");
    assertThat(response).isInstanceOf(AJAXErrorResponse.class)
            .usingRecursiveComparison().ignoringFields("stackTrace")
            .isEqualTo(expected);
}