Map<String, Object> intArrayProps = new LinkedHashMap<String, Object>();
intArrayProps.put("numbers", new Integer[]{0, 1, 2});
Event intArrayEvent = new Event("my/simple/topic", mapToDictionary(intArrayProps));
JSONObject jIntArray = new JSONObject(JsonEventLogger.constructMessage(intArrayEvent));
assertNotNull("complex event, int array not null", jIntArray.optJSONArray("numbers"));
assertEquals("complex event, int array props", 0, jIntArray.getJSONArray("numbers").getInt(0));
assertEquals("complex event, int array props", 1, jIntArray.getJSONArray("numbers").getInt(1));
assertEquals("complex event, int array props", 2, jIntArray.getJSONArray("numbers").getInt(2));
Map<String, Object> mapProps = new LinkedHashMap<String, Object>();