@Test
public void testCollectionsWithoutGeneric() {
Map<String, Object> params = new LinkedHashMap<String, Object>();
params.put("name", "Joan1");
TestObject ce = new TestObject(33, "Meier", Boolean.TRUE,
new BigDecimal("33.334"));
params.put("collections", Collections.singleton(ce));
String result = (String) ControllerUtil.sendAndReceiveNamed(mockMvc,
"remoteProviderSimpleNamed", "methodCollection3", String.class, params);
assertThat(result).isEqualTo(
"3->Joan1;[{id=33, name=Meier, active=true, amount=33.334}]");
params = new LinkedHashMap<String, Object>();
params.put("name", "Joan2");
List<TestObject> list = new ArrayList<TestObject>();
list.add(new TestObject(1, "1", Boolean.TRUE, new BigDecimal("1.1")));
list.add(new TestObject(2, "2", Boolean.FALSE, new BigDecimal("1.2")));
list.add(new TestObject(3, "3", Boolean.TRUE, new BigDecimal("1.3")));
params.put("collections", list);
result = (String) ControllerUtil.sendAndReceiveNamed(mockMvc,
"remoteProviderSimpleNamed", "methodCollection3", String.class, params);
assertThat(result)