EasyMock.replay(flowValidationTrackings);
reportAll.addTracking(flowValidationTrackings[0]);
reportAll.addTracking(flowValidationTrackings[1]);
JSONWriter jsonWriter = getJsonWriter();
jsonWriter.object().key("validation").value(reportAll).endObject();
assertEquals(jsonWriter.toString(),
"{\"validation\":{\"flowValidationTracking\":[{\"key\":\"0\",\"parameters\":[\"0 error-1\",\"0 error-2\"]},{\"key\":\"1\",\"parameters\":[\"1 error-1\",\"1 error-2\"]}]}}");
ReportAllValidationResult single = new ReportAllValidationResult().addTracking(false, "activityKey", "foo", "foo");
jsonWriter = getJsonWriter();