OrderLine orderLine = createOrderLine();
OrderVersion orderVersion = ResourceAllocationDAOTest
.setupVersionUsing(scenarioManager, orderLine
.getOrder());
orderLine.useSchedulingDataFor(orderVersion);
SchedulingDataForVersion schedulingDataForVersion = orderLine
.getCurrentSchedulingDataForVersion();
TaskSource taskSource = TaskSource
.createForGroup(schedulingDataForVersion);
TaskGroupSynchronization synchronization = new TaskGroupSynchronization(
taskSource, Collections.<TaskSourceSynchronization> emptyList()) {