@Test
	public void checkPlacesByDateTest() {

		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("Duplicate booking or full dining hall", false);
		} catch (NotValidDateException e) {
			assertTrue("Invalid date", false);
		}

		assertEquals(bookingService.getPlacesForDiningSchedule(cb,
				bookingService.getDiningHall().get(0)), 22);
	}