}
}
dataset.add(data);
CallTimeDataManagerLocal mgr = LookupUtil.getCallTimeDataManager();
mgr.addCallTimeData(dataset);
PageList<CallTimeDataComposite> persistedData = mgr.findCallTimeDataForResource(LookupUtil.getSubjectManager()
.getOverlord(), calltimeSchedule.getId(), timestamp - 1L, timestamp + count + 1L, new PageControl());
// just a few sanity checks
assertEquals("did not persist all calltime data, only persisted: " + persistedData.getTotalSize(), count,
persistedData.getTotalSize());
assertEquals("did not persist all endpoint calltime data, only persisted: " + persistedData.get(0).getCount(),