@Test
public void testResult() {
Map<String, Object> data = new HashMap<String, Object>();
data.put("data", "one");
data.put("success", Boolean.TRUE);
ExtDirectFormLoadResult wrapper = (ExtDirectFormLoadResult) ControllerUtil
.sendAndReceive(mockMvc, "remoteProviderFormLoad", "method7",
ExtDirectFormLoadResult.class, data);
assertThat(wrapper.isSuccess()).isTrue();
assertThat(wrapper.getData()).isEqualTo("one");
data = new HashMap<String, Object>();
data.put("data", "two");
data.put("success", Boolean.FALSE);
wrapper = (ExtDirectFormLoadResult) ControllerUtil.sendAndReceive(mockMvc,
"remoteProviderFormLoad", "method7", ExtDirectFormLoadResult.class, data);
assertThat(wrapper.isSuccess()).isFalse();
assertThat(wrapper.getData()).isEqualTo("two");
}