WeatherRepository { public void removeAirport(String iataCode) { boolean removed = airports.remove(iataCode) != null; if (!removed) { throw new WeatherException("Airport not found for iataCode: " + iataCode); } }  Airport findAirport(String iataCode); Airport getAirport(String iataCode); void saveAirport(Airport airport); Collection<Airport> getAllAirports(); void deleteAll(); void removeAirport(String iataCode);  }
@Test(expected=WeatherException.class) public void removeUnexistendAirportFails() { target.removeAirport("code1"); target.removeAirport("code1"); }