@Test
public void testException() throws Exception
{
View view = createStrictMock(View.class);
Map model = createStrictMock(Map.class);
ActionContext context = createStrictMock(ActionContext.class);
HttpServletRequest request = createStrictMock(HttpServletRequest.class);
HttpServletResponse response = createStrictMock(HttpServletResponse.class);
SpringRenderingViewAdapter va = new SpringRenderingViewAdapter(view, model);
expect(context.getRequest()).andReturn(request);
expect(context.getResponse()).andReturn(response);
view.render(model, request, response);
expectLastCall().andThrow(new IllegalStateException());
replay(context);
replay(view);
replay(model);