NewReservationBean implements Serializable { public Booking getBooking() { return booking; }  @PostConstruct void initBooking(); Booking getBooking(); String getPublicGuestId(); void setPublicGuestId(@NotNull String publicGuestId); void init(ComponentSystemEvent evt); String getRoomNumber(); void setRoomNumber(@NotNull String number); String addReservation(); String getBacklink(); void setBacklink(String backlink);  }
@Test public void the_booking_is_initialised_as_an_empty_booking() { NewReservationBean bean = new NewReservationBean(); assertNotNull(bean.getBooking()); }