### Question:
VehicleBrandJdbcGateway implements VehicleBrandGateway { @Override public Optional<VehicleBrand> findByBrand(final String brand) { final List<VehicleBrand> vehicleBrands = jdbcTemplate .query("SELECT * FROM RENT_A_CAR.VEHICLE_BRAND WHERE NAME = ?", mapper, brand); return Optional.ofNullable(vehicleBrands.isEmpty() ? null : vehicleBrands.get(0)); } VehicleBrandJdbcGateway(final JdbcTemplate jdbcTemplate); @Override VehicleBrand save(final VehicleBrand vehicleBrand); @Override Optional<VehicleBrand> findByBrand(final String brand);  }### Answer:
@Test void test_findByName_missingName_empty() { final Optional<VehicleBrand> vehicleBrandOptional = vehicleBrandGateway.findByBrand("name"); Assertions.assertFalse(vehicleBrandOptional.isPresent()); }