@Test
void update() {

    repository.update(testVehicle);
    verify(crudRepository).save(vehicleEntityCaptor.capture());
    VehicleEntity savedVehicle = vehicleEntityCaptor.getValue();
    assertThat(savedVehicle.getId()).isEqualTo(testVehicle.id());
    assertThat(savedVehicle.getName()).isEqualTo(testVehicle.name());
    assertThat(savedVehicle.getCapacity()).isEqualTo(testVehicle.capacity());
}