class MyAction extends ActionSupport {

    public String view() {
        id = "11";
        name = "test-11";
        return SUCCESS;
    }

}

class TestMyAction extends ActionSupport {

    public static final Logger LOG;

    @Test
    public void testView() throws Exception {

        ActionProxy proxy = getActionProxy("/view");
//        actions.MyAction myAct = (actions.MyAction) proxy.getAction();
        String result = proxy.execute();
        assertEquals("success", result);

//        System.out.println(ToStringBuilder.reflectionToString(response));
        System.out.println(response.getContentAsString());
//        request.setParameter("id", "1");
//        request.setParameter("name", "Test Desc");
    }

}