setField(hb, "events", new Events() { @Override public void raiseEvent(String type, Object... params) { assert "bookingConfirmed".equals(type); } } );
setField(hb, "log", Logging.getLog(HotelBookingAction.class));
assert hb.selectHotel(hotel).equals("hotel");
User user = em.getReference(User.class, "gavin");
assert user!=null;
assert hb.bookHotel().equals("book");
Booking booking = (Booking) getField(hb, "booking");
assert booking!=null;