The Javadoc of HttpServletResponse and ServletResponse have been improved in Servlet 6.1, we should reflect that behavior in our response mocks.