"remoteProviderTreeLoad", "method2", new TypeReference<List<Node>>() {/* nothinghere */
}, requestParameters);
String appendix = ":foo;" + new LocalDate().toString();
assertThat(nodes).hasSize(5).containsSequence(
new Node("n1", "Node 1" + appendix, false),
new Node("n2", "Node 2" + appendix, false),
new Node("n3", "Node 3" + appendix, false),
new Node("n4", "Node 4" + appendix, false),
new Node("n5", "Node 5" + appendix, false));
requestParameters = new LinkedHashMap<String, Object>();
requestParameters.put("node", "root");
requestParameters.put("today",
ISODateTimeFormat.date().print(new LocalDate().plusDays(10)));
nodes = (List<Node>) ControllerUtil.sendAndReceive(mockMvc,
"remoteProviderTreeLoad", "method2", new TypeReference<List<Node>>() {/* nothinghere */
}, requestParameters);
appendix = ":defaultValue;" + new LocalDate().plusDays(10).toString();
assertThat(nodes).hasSize(5).containsSequence(
new Node("n1", "Node 1" + appendix, false),
new Node("n2", "Node 2" + appendix, false),
new Node("n3", "Node 3" + appendix, false),
new Node("n4", "Node 4" + appendix, false),
new Node("n5", "Node 5" + appendix, false));
}