@Test
	public void getBookingPrizeTest() {

		Booking b = null;
		Student s = null;
		try {
			b = bookingService.find(0);
			s = b.getStudent();
		} catch (InstanceNotFoundException e) {
			assertTrue("Booking not found", false);
		}

		List<Booking> lb = bookingService.getStudentBookingsByDate(s,
				b.getDate());
		assertEquals(bookingService.getBookingsPrize(lb),
				new BigDecimal("4.00"));

		SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT);
		Calendar cb1 = Calendar.getInstance();
		try {
			cb1.setTime(sdf.parse("27/10/2014"));
		} catch (ParseException e1) {
			assertTrue("Bad format to calendar", false);
		}

		try {
			bookingService.create(new Booking(cb1, s, bookingService
					.findDiningHall(1)));
		} catch (DuplicateInstanceException | MaxCapacityException
				| NotValidDateException | InstanceNotFoundException e) {
			assertTrue("Error in getStudentBookingByDateTest", false);
		}

		lb = bookingService.getStudentBookingsByDate(s, b.getDate());
		assertEquals(bookingService.getBookingsPrize(lb),
				new BigDecimal("9.00"));
	}