{
EntityManagerFactory emf = Persistence.createEntityManagerFactory("bookingDatabase");
EntityManager em = emf.createEntityManager();
HotelSearching hs = new HotelSearchingAction();
setField(hs, "em", em);
hs.setSearchString("atlanta");
hs.find();
List<Hotel> hotels = (List<Hotel>) getField(hs, "hotels");
assert hotels!=null;
assert hotels.size()==3;