Pickup s = mock(Pickup.class);
Capacity newSize = Capacity.Builder.newInstance().addDimension(0, 5).build();
when(s.getSize()).thenReturn(newSize);
ServiceLoadActivityLevelConstraint loadConstraint = new ServiceLoadActivityLevelConstraint(stateManager);
JobInsertionContext context = new JobInsertionContext(pickup_delivery_route,s,pickup_delivery_route.getVehicle(),null,0.);
PickupService newAct = new PickupService(s);
HardActivityConstraint.ConstraintsStatus status = loadConstraint.fulfilled(context, pickup_delivery_route.getStart(), newAct, pickup_delivery_route.getActivities().get(0), 0.);
assertEquals(HardActivityConstraint.ConstraintsStatus.FULFILLED,status);