public static Task createValidTask() {
HoursGroup hoursGroup = new HoursGroup();
hoursGroup.setWorkingHours(3);
OrderLine orderLine = OrderLine.create();
Order order = new Order();
order.useSchedulingDataFor(mockedOrderVersion);
order.setInitDate(new Date());
order.add(orderLine);
SchedulingDataForVersion version = TaskElementTest
.mockSchedulingDataForVersion(orderLine);
TaskSource taskSource = TaskSource.create(version, Arrays