@Test
	public void getPlacesBookedTest() {
		try {
			SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT);

			DiningHall d1 = new DiningHall(24, BigDecimal.valueOf(4.00),
					DiningHall.Type.MADRUGADORES);
			DiningHall d2 = new DiningHall(24, BigDecimal.valueOf(4.00),
					DiningHall.Type.MADRUGADORES);

			Calendar cal1 = Calendar.getInstance();
			cal1.setTime(sdf.parse("27/10/2016"));
			Booking b1 = new Booking(cal1, familyService.findStudent(0), d1);
			Calendar cal2 = Calendar.getInstance();
			cal2.setTime(sdf.parse("27/10/2016"));
			Booking b2 = new Booking(cal2, familyService.findStudent(1), d1);
			Calendar cal3 = Calendar.getInstance();
			cal3.setTime(sdf.parse("27/10/2016"));
			Booking b3 = new Booking(cal1, familyService.findStudent(2), d1);
			Calendar cal4 = Calendar.getInstance();
			cal4.setTime(sdf.parse("27/10/2016"));
			Booking b4 = new Booking(cal4, familyService.findStudent(3), d1);

			bookingService.create(b1);
			bookingService.create(b2);
			bookingService.create(b3);
			assertEquals(3, bookingService.getPlacesBooked(b4));

			bookingService.remove(b2);
			assertEquals(2, bookingService.getPlacesBooked(b4));

			bookingService.create(b4);
			assertEquals(3, bookingService.getPlacesBooked(b2));

			Calendar cal5 = Calendar.getInstance();
			cal5.setTime(sdf.parse("27/10/2016"));
			Booking b5 = new Booking(cal4, familyService.findStudent(3), d2);

			assertEquals(0, bookingService.getPlacesBooked(b5));

		} catch (ParseException | InstanceNotFoundException
				| DuplicateInstanceException | MaxCapacityException
				| NotValidDateException e) {
			e.printStackTrace();
		}

	}