Code example for ModelMap

0
	} 
 
	@Test 
	public void handleMapReturnValue() throws Exception { 
		mavContainer.addAttribute("attr1", "value1"); 
		Map<String, Object> returnValue = new ModelMap("attr2", "value2"); 
 
		processor.handleReturnValue(returnValue , returnParamMap, mavContainer, webRequest); 
 
		assertEquals("value1", mavContainer.getModel().get("attr1")); 
		assertEquals("value2", mavContainer.getModel().get("attr2")); 
	} 
 
	@SuppressWarnings("unused") 
	private Map<String, Object> map(Map<String, Object> map) { 
		return null; 
	} 
 
}