List<CalendarEvent> events = calendar.getEventProvider().getEvents(
start, end);
assertEquals(container.size(), events.size());
// Check that event values are present
CalendarEvent e = events.get(0);
assertEquals("Test 1", e.getCaption());
assertEquals("Description 1", e.getDescription());
assertTrue(e.getStart().compareTo(start) == 0);
// Test that a certain range is returned
cal.setTime((Date) container.getItem(container.getIdByIndex(6))
.getItemProperty("testStartDate").getValue());
end = cal.getTime();