### Question:
ErrorUtils { public static int getErrorStatus(HttpServletRequest request) { Integer statusCode = (Integer) request.getAttribute(ATTR_ERROR_STATUS_CODE); return statusCode != null ? statusCode : HttpStatus.INTERNAL_SERVER_ERROR.value(); } private  ErrorUtils(); static int getErrorStatus(HttpServletRequest request); static String getErrorMessage(HttpServletRequest request); static String getGatewayUri(HttpServletRequest request); static final String ATTR_ERROR_EXCEPTION; }### Answer:
@Test void testGetErrorStatus() { MockHttpServletRequest request = new MockHttpServletRequest(); assertEquals(500, ErrorUtils.getErrorStatus(request)); request.setAttribute(ErrorUtils.ATTR_ERROR_STATUS_CODE, 504); assertEquals(504, ErrorUtils.getErrorStatus(request)); }