### Question:
VehicleTypeJdbcGateway implements VehicleTypeGateway { @Override public Optional<VehicleType> findByType(final String type) { final List<VehicleType> vehicleTypes = jdbcTemplate .query("SELECT * FROM RENT_A_CAR.VEHICLE_TYPE WHERE TYPE = ?", mapper, type); return Optional.ofNullable(vehicleTypes.isEmpty() ? null : vehicleTypes.get(0)); } VehicleTypeJdbcGateway(final JdbcTemplate jdbcTemplate); @Override VehicleType save(final VehicleType vehicleType); @Override Optional<VehicleType> findByType(final String type);  }### Answer:
@Test void test_findByType_missingType_empty() { final Optional<VehicleType> vehicleTypeOptional = vehicleTypeGateway.findByType("type"); Assertions.assertFalse(vehicleTypeOptional.isPresent()); }