}
@Test
public void testMinusWithExtraHours() {
Capacity c = Capacity.create(hours(8)).withAllowedExtraEffort(hours(2));
assertThat(c.minus(hours(6)).getStandardEffort(), equalTo(hours(2)));
assertThat(c.minus(hours(6)).getAllowedExtraEffort(), equalTo(hours(2)));
assertThat(c.minus(hours(8)).getStandardEffort(), equalTo(hours(0)));
assertThat(c.minus(hours(8)).getAllowedExtraEffort(), equalTo(hours(2)));
assertThat(c.minus(hours(10)).getStandardEffort(), equalTo(hours(0)));
assertThat(c.minus(hours(10)).getAllowedExtraEffort(),
equalTo(hours(0)));
assertThat(c.minus(hours(12)).getAllowedExtraEffort(),
equalTo(hours(0)));
assertFalse(c.minus(hours(10)).isOverAssignableWithoutLimit());
}