IntraDayDate.startOfDay(tomorrow));
assertThat(completeDay.limitWorkingDay(hours(10)), equalTo(hours(10)));
PartialDay startsInTheMiddle = new PartialDay(IntraDayDate.create(
today, EffortDuration.hours(3)),
IntraDayDate.startOfDay(tomorrow));
assertThat(startsInTheMiddle.limitWorkingDay(hours(10)),
equalTo(hours(7)));
assertThat(startsInTheMiddle.limitWorkingDay(hours(3)), equalTo(zero()));
assertThat(startsInTheMiddle.limitWorkingDay(hours(2)), equalTo(zero()));
PartialDay startAndEndInSameDay = new PartialDay(IntraDayDate.create(
today, EffortDuration.hours(3)), IntraDayDate.create(today,