}
@SuppressWarnings({ "unchecked", "rawtypes" })
@Test
public void shouldParseComplexJson() throws Exception {
JsonParserAction action = new JsonParserAction();
action.setField("body");
Message message = new Message();
message.setProperty("body", "[ 2, 3, 4 ]");
action.execute(message);
message.setProperty("body", "{ \"numbers\": { \"one\": [1, 2, 3], \"two\": [2, 3, 4], \"three\": [3, 4, 5] } }");
action.execute(message);
Assert.assertNotNull(message.getProperty("numbers"));
Map<String,Object> numbers = message.getProperty("numbers", Map.class);
List list = (List) numbers.get("one");
Assert.assertNotNull(list);