@Test
	public void addBookingTest() {

		Student s = null;
		try {
			s = familyService.findStudent(3);
		} catch (InstanceNotFoundException e) {
			assertTrue("Student not found", false);
		}
		SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT);
		Calendar cb = Calendar.getInstance();
		try {
			cb.setTime(sdf.parse("27/10/2014"));
		} catch (ParseException e) {
			assertTrue("Bad format to calendar", false);
		}
		try {
			bookingService.create(new Booking(cb, s, bookingService
					.getDiningHall().get(0)));
		} catch (DuplicateInstanceException | MaxCapacityException e) {
			assertTrue("Booking has already been created", false);
		} catch (NotValidDateException e) {
			e.printStackTrace();
		}
		Student ss = null;
		try {
			ss = bookingService.find(2).getStudent();
			assertEquals(ss, s);
			assertEquals(bookingService.find(2).getDate(), cb);
			assertEquals(bookingService.find(2).getDiningHall(), bookingService
					.getDiningHall().get(0));
		} catch (InstanceNotFoundException e) {
			assertTrue("Booking not found", false);
		}

	}