@Test
void change_vehicle_capacity() {

    int oldCapacity = 100;
    int newCapacity = 50;
    PlanningVehicle workingVehicle = PlanningVehicleFactory.testVehicle(1, oldCapacity);
    PlanningVehicle changeVehicle = PlanningVehicleFactory.testVehicle(2, newCapacity);
    when(scoreDirector.lookUpWorkingObject(changeVehicle)).thenReturn(workingVehicle);
    // do change
    ChangeVehicleCapacity changeVehicleCapacity = new ChangeVehicleCapacity(changeVehicle);
    changeVehicleCapacity.doChange(scoreDirector);
    assertThat(workingVehicle.getCapacity()).isEqualTo(newCapacity);
    verify(scoreDirector).beforeProblemPropertyChanged(workingVehicle);
    verify(scoreDirector).afterProblemPropertyChanged(workingVehicle);
    verify(scoreDirector).triggerVariableListeners();
}