Code example for ModelMap

0
		assertEquals(url + "/value1/v1/value2?key3=value3", this.response.getRedirectedUrl()); 
	} 
 
	@Test(expected=IllegalArgumentException.class) 
	public void uriTemplateNullValue() throws Exception { 
		new RedirectView("/{foo}").renderMergedOutputModel(new ModelMap(), this.request, this.response); 
	} 
 
	@Test 
	public void emptyRedirectString() throws Exception { 
		Map<String, Object> model = new HashMap<String, Object>(); 
 
		RedirectView redirectView = new RedirectView(""); 
		redirectView.renderMergedOutputModel(model, this.request, this.response); 
 
		assertEquals("", this.response.getRedirectedUrl()); 
	} 
 
	// SPR-9016