expect(resourceAllocation.getAssignedHours()).andReturn(hours)
.anyTimes();
expect(resourceAllocation.getTask()).andReturn(task).anyTimes();
expect(resourceAllocation.hasAssignments()).andReturn(true).anyTimes();
expect(resourceAllocation.isSatisfied()).andReturn(true).anyTimes();
resourceAllocation.detach();
expectLastCall().anyTimes();
replay(resourceAllocation);
return resourceAllocation;
}