.build());
}
doPost(events2);
}
final NodeStatusDataStore store = IoCs.getInstance(CollectorNodeStatusDataStore.class);
final Map<String,NodeStatus> statuses = store.statuses();
assertEquals(2, statuses.size());
assertEquals(Status.OK, statuses.get("node1").getStatus());
assertEquals(1, statuses.get("node1").getResults().length);
assertEquals(Status.KO, statuses.get("node2").getStatus());
assertEquals(1, statuses.get("node2").getResults().length);