### Question:
VehicleModelJdbcGateway implements VehicleModelGateway { @Override public Optional<VehicleModel> findByModel(final String model) { final List<VehicleModel> vehicleModels = jdbcTemplate .query("SELECT * FROM RENT_A_CAR.VEHICLE_MODEL WHERE NAME = ?", mapper, model); return Optional.ofNullable(vehicleModels.isEmpty() ? null : vehicleModels.get(0)); } VehicleModelJdbcGateway(final JdbcTemplate jdbcTemplate); @Override VehicleModel save(final VehicleModel vehicleModel); @Override Optional<VehicleModel> findByModel(final String model);  }### Answer:
@Test void test_findByModel_missingName_empty() { final Optional<VehicleModel> vehicleModelOptional = vehicleModelGateway .findByModel("model"); Assertions.assertFalse(vehicleModelOptional.isPresent()); }