public void testRenderAction() throws Exception {
StaticExpression name = new StaticExpression("frag1");
StaticExpression name2 = new StaticExpression("frag2");
RenderAction action = new RenderAction(new Expression[] { name, name2 });
MockRequestContext context = new MockRequestContext();
Event result = action.execute(context);
assertEquals("success", result.getId());
String[] fragments = (String[]) context.getFlashScope().getArray(View.RENDER_FRAGMENTS_ATTRIBUTE,
String[].class);
assertEquals("frag1", fragments[0]);
assertEquals("frag2", fragments[1]);
}