}
public void testFacility() throws Exception {
Hotel hotel = addHotel("it");
Facility facility = new Facility();
facility.setCode("Swimming Pool");
hotel.addFacility(facility);
facility.addStructure(hotel);
localizedHotelManager.add(hotel);
Hotel sameHotel = (Hotel) localizedHotelManager.get(hotel.getId());
assertEquals(1, sameHotel.getFacilities().size());
Facility sameFacility = (Facility) sameHotel.getFacilities().iterator().next();
assertEquals("Swimming Pool", sameFacility.getCode());
Hotel facilityHotel = (Hotel) sameFacility.getStructures().iterator().next();
assertEquals(hotel.getId(),facilityHotel.getId());
}