GroovyConsoleRequest implements SlingHttpServletRequest { @Override public void removeAttribute(String arg0) { throw new UnsupportedOperationException("removeAttribute not implemented"); } GroovyConsoleRequest(ResourceResolver resolver); @Override String getAuthType(); @Override String getContextPath(); @Override Cookie[] getCookies(); @Override long getDateHeader(String arg0); @Override String getHeader(String arg0); @Override Enumeration getHeaderNames(); @Override Enumeration getHeaders(String arg0); @Override int getIntHeader(String arg0); @Override String getMethod(); @Override String getPathInfo(); @Override String getPathTranslated(); @Override String getQueryString(); @Override String getRemoteUser(); @Override String getRequestURI(); @Override StringBuffer getRequestURL(); @Override String getRequestedSessionId(); @Override String getServletPath(); @Override HttpSession getSession(); @Override HttpSession getSession(boolean arg0); @Override Principal getUserPrincipal(); @Override boolean isRequestedSessionIdFromCookie(); @Override boolean isRequestedSessionIdFromURL(); @Override boolean isRequestedSessionIdFromUrl(); @Override boolean isRequestedSessionIdValid(); @Override boolean isUserInRole(String arg0); @Override Object getAttribute(String arg0); @Override Enumeration getAttributeNames(); @Override String getCharacterEncoding(); @Override int getContentLength(); @Override String getContentType(); @Override ServletInputStream getInputStream(); @Override String getLocalAddr(); @Override String getLocalName(); @Override int getLocalPort(); @Override Locale getLocale(); @Override Enumeration getLocales(); @Override String getParameter(String arg0); @Override Map getParameterMap(); @Override Enumeration getParameterNames(); @Override String[] getParameterValues(String arg0); @Override String getProtocol(); @Override BufferedReader getReader(); @Override String getRealPath(String arg0); @Override String getRemoteAddr(); @Override String getRemoteHost(); @Override int getRemotePort(); @Override RequestDispatcher getRequestDispatcher(String arg0); @Override String getScheme(); @Override String getServerName(); @Override int getServerPort(); @Override boolean isSecure(); @Override void removeAttribute(String arg0); @Override void setAttribute(String arg0, Object arg1); @Override void setCharacterEncoding(String arg0); @Override T adaptTo(Class<T> arg0); @Override Cookie getCookie(String arg0); @Override RequestDispatcher getRequestDispatcher(Resource arg0); @Override RequestDispatcher getRequestDispatcher(String arg0, RequestDispatcherOptions arg1); @Override RequestDispatcher getRequestDispatcher(Resource arg0, RequestDispatcherOptions arg1); @Override RequestParameter getRequestParameter(String arg0); @Override List<RequestParameter> getRequestParameterList(); @Override RequestParameterMap getRequestParameterMap(); @Override RequestParameter[] getRequestParameters(String arg0); @Override RequestPathInfo getRequestPathInfo(); @Override RequestProgressTracker getRequestProgressTracker(); @Override Resource getResource(); @Override ResourceBundle getResourceBundle(Locale arg0); @Override ResourceBundle getResourceBundle(String arg0, Locale arg1); @Override ResourceResolver getResourceResolver(); @Override String getResponseContentType(); @Override Enumeration<String> getResponseContentTypes(); @Override boolean authenticate(HttpServletResponse response); @Override void login(String username, String password); @Override void logout(); @Override Collection<Part> getParts(); @Override Part getPart(String name); @Override ServletContext getServletContext(); @Override AsyncContext startAsync(); @Override AsyncContext startAsync(ServletRequest servletRequest, ServletResponse servletResponse); @Override boolean isAsyncStarted(); @Override boolean isAsyncSupported(); @Override AsyncContext getAsyncContext(); @Override DispatcherType getDispatcherType();  }
@Test(expected = UnsupportedOperationException.class) public void removeAttribute() { request.removeAttribute(""); }