// Ensure no events
assertEquals(0, calendar.getEvents(start, end).size());
// Add an event
BasicEvent event = new BasicEvent("Test", "Test", start);
calendar.addEvent(event);
// Ensure event exists
List<CalendarEvent> events = calendar.getEvents(start, end);
assertEquals(1, events.size());
assertEquals(events.get(0).getCaption(), event.getCaption());
assertEquals(events.get(0).getDescription(), event.getDescription());
assertEquals(events.get(0).getStart(), event.getStart());
}