Map<String, Object> stringArrayProps = new LinkedHashMap<String, Object>();
stringArrayProps.put("resourceChangedAttributes", new String[]{"first", "second"});
Event stringArrayEvent = new Event("my/simple/topic", mapToDictionary(stringArrayProps));
JSONObject jStringArray = new JSONObject(JsonEventLogger.constructMessage(stringArrayEvent));
assertNotNull("complex event, string array not null", jStringArray.optJSONArray("resourceChangedAttributes"));
assertEquals("complex event, string array props", "first", jStringArray.getJSONArray("resourceChangedAttributes").getString(0));
assertEquals("complex event, string array props", "second", jStringArray.getJSONArray("resourceChangedAttributes").getString(1));
Map<String, Object> intArrayProps = new LinkedHashMap<String, Object>();
intArrayProps.put("numbers", new Integer[]{0, 1, 2});