private TestTicketPool createTicketPool() throws Exception {

		
		
		IRailwayRepository repo = ServiceManager.getServices()
				.getRequiredService(IRailwayRepository.class);

		TrainNumber tn = Queries.query(repo.getTrainNumbers()).first(
				new Predicate<TrainNumber>() {

					@Override
					public boolean evaluate(TrainNumber obj) throws Exception {
						return obj.getName().equals("G101");
					}
				});

		LocalDate today = LocalDate.now();

		org.ng12306.tpms.runtime.Train train = new org.ng12306.tpms.runtime.Train();
		train.setId(UUID.randomUUID());
		train.setDepartureDate(today);
		train.setTrainNumber(tn);

		TestTicketPool pool = new TestTicketPool(train);
		pool.setSite(ServiceManager.getServices());
		pool.initialize();

		return pool;

	}