private double doPreBooking(BookingType bookingType) throws SAXException, IOException, ParseException {
PreCommitValidationHandler handler = null;
for (ReservationType reservationType : ReservationType.values()) {
for (PaymentType paymentType : PaymentType.values()) {
HTTPSession session = Login.getInstance().login(LoginTest.TEST_USER_LOGIN, LoginTest.TEST_USER_PIN);
Date date = DateUtils.getDateFormat().parse("25.07.2011");
Date queryTime = DateUtils.getTimeFormat().parse("08:00");
handler = Booking.getInstance().doPreBooking(session, new StationVO("Karlsruhe Hbf"), new StationVO("Frankfurt(Main)Hbf"),
date, queryTime, bookingType, reservationType, paymentType);
Assert.assertTrue("precommit price must not be undefined for payment:" + paymentType.name() + " and reservation: " + reservationType.name(), handler.getPrice()!=null);