private void assertBean(MockClient client, String name, Object expected) throws Exception {
MockViewBridge render = client.render(name);
String url = render.assertStringResponse();
MockViewBridge m = (MockViewBridge)client.invoke(url);
assertEquals(expected, m.assertStringResponse());
render = client.render(name + "Action");
url = render.assertStringResponse();
MockActionBridge action = (MockActionBridge)client.invoke(url);
MockViewBridge m2 = (MockViewBridge)client.invoke(action.assertUpdate());