@Bean
    public PassengerFlightService passengerFlightService() throws Exception {

      PassengerFlightService passengerFlightService = new PassengerFlightService();

      RestTemplate restTemplate = new RestTemplate();

      CredentialApplier credentialApplier = new CredentialApplier();
      credentialApplier.setUsername("chooliyip");
      credentialApplier.setApiKey("b6117db250a0aa416c04ea1ff3aba1d54eb19978");

      AirlineFlightSchedulesHandler airlineFlightSchedulesHandler =
          new AirlineFlightSchedulesHandler();
      airlineFlightSchedulesHandler.setRestTemplate(restTemplate);
      airlineFlightSchedulesHandler.setCredentialApplier(credentialApplier);

      passengerFlightService.setAirlineFlightSchedulesHandler(airlineFlightSchedulesHandler);

      InFlightInfoHandler inFlightInfoHandler = new InFlightInfoHandler();
      inFlightInfoHandler.setRestTemplate(restTemplate);
      inFlightInfoHandler.setCredentialApplier(credentialApplier);

      passengerFlightService.setInFlightInfoHandler(inFlightInfoHandler);

      AirportInfoHandler airportInfoHandler = new AirportInfoHandler();
      airportInfoHandler.setRestTemplate(restTemplate);
      airportInfoHandler.setCredentialApplier(credentialApplier);

      passengerFlightService.setAirportInfoHandler(airportInfoHandler);

      return passengerFlightService;
    }
  @Before
  public void setUp() {
    AirlineFlightSchedulesHandler airlineFlightSchedulesHandler =
        passengerFlightService.getAirlineFlightSchedulesHandler();
    airlineFlightSchedulesHandler.setAPIUrl(
        "http://flightxml.flightaware.com/json/FlightXML2/AirlineFlightSchedules");

    InFlightInfoHandler inFlightInfoHandler = passengerFlightService.getInFlightInfoHandler();
    inFlightInfoHandler.setAPIUrl("http://flightxml.flightaware.com/json/FlightXML2/InFlightInfo");

    AirportInfoHandler airportInfoHandler = passengerFlightService.getAirportInfoHandler();
    airportInfoHandler.setAPIUrl("http://flightxml.flightaware.com/json/FlightXML2/AirportInfo");
  }