void () { EventLogGroup group = new EventLogGroup("newGroup", 1); IntEventField countField = EventFields.Int("count"); StringEventField nameField = EventFields.StringValidatedByEnum("name", "os"); EventId1<List<? extends ObjectEventData>> event = group.registerEvent("testEvent", new ObjectListEventField("objects", nameField, countField)); List<LogEvent> events = FUCollectorTestCase.INSTANCE.collectLogEvents(getTestRootDisposable(), () -> { ArrayList<ObjectEventData> objects = new ArrayList<>(); objects.add(new ObjectEventData(nameField.with("testName1"), countField.with(1))); objects.add(new ObjectEventData(nameField.with("testName2"), countField.with(2))); event.log(objects); return Unit.INSTANCE; }); UsefulTestCase.assertSize(1, events); Map<String, Object> eventData = events.get(0).getEvent().getData(); List<?> objects = (List<?>)eventData.get("objects"); UsefulTestCase.assertSize(2, objects); }