// Do not remove this sleep -- the previous is is asynchronous
// and the sleep "guarantees" that data is actually hitting the db
Thread.sleep(10000);
PageList<CallTimeDataComposite> list1 = callTimeDataManager.findCallTimeDataForResource(overlord,
schedule1.getId(), now - DELTA, System.currentTimeMillis() + DELTA, new PageControl());
PageList<CallTimeDataComposite> list2 = callTimeDataManager.findCallTimeDataForResource(overlord,
schedule2.getId(), now - DELTA, System.currentTimeMillis() + DELTA, new PageControl());
assert list1 != null;
assert list2 != null;
assert list1.size() == 1 : "List 1 returned " + list1.size() + " entries, expected was 1";