MachineDTO m9 = createMachineDTOWithTwoCostsAssignments("m9",
costCategory.getName(), getDate(2000, 2, 1),
getDate(2000, 5, 1), getDate(2000, 2, 1), getDate(2000, 5, 1));
/* Test. */
ResourceListDTO resourceDTOs = createResourceListDTO(m1, m2, m3, m4,
m5, m6, m7, m8, m9);
assertOneConstraintViolationPerInstance(resourceService
.addResources(resourceDTOs), resourceDTOs.resources.size());