Code example for ServletWebRequest

	public void setUp() { 
		this.handler = new ViewMethodReturnValueHandler(); 
		this.mavContainer = new ModelAndViewContainer(); 
		this.webRequest = new ServletWebRequest(new MockHttpServletRequest()); 
	public void supportsReturnType() throws Exception { 
	public void returnView() throws Exception { 
		InternalResourceView view = new InternalResourceView("testView"); 
		this.handler.handleReturnValue(view, createReturnValueParam("view"), this.mavContainer, this.webRequest); 
		assertSame(view, this.mavContainer.getView()); 
Connect your IDE to all the code out there  Get Codota for Java