@Test
public void ifNoAllocationsCantBeDoneTheTaskEndIsReturned() {
givenTaskOfDaysLength(10);
AvailabilityTimeLine availability = AvailabilityTimeLine.allValid();
availability.invalidUntil(new LocalDate(2010, 11, 13));
availability.invalidFrom(new LocalDate(2010, 11, 15));
givenCalendarWithAvailability(availability, hours(8));
givenSpecificAllocations(ResourcesPerDay.amount(1));
IntraDayDate end = ResourceAllocation.allocating(allocations)
.untilAllocating(hours(17));