CalendarEntry calendarEntry = this.calendarEntryAggregate();
DomainRegistry.calendarEntryRepository().save(calendarEntry);
CalendarEntryData calendarEntryData =
calendarEntryQueryService
.calendarEntryDataOfId(
calendarEntry.tenant().id(),
calendarEntry.calendarEntryId().id());
assertNotNull(calendarEntryData);
assertNotNull(calendarEntryData.getAlarmAlarmUnitsType());
assertNotNull(calendarEntryData.getCalendarEntryId());
assertNotNull(calendarEntryData.getCalendarId());
assertEquals(calendarEntry.calendarId().id(), calendarEntryData.getCalendarId());
assertNotNull(calendarEntryData.getDescription());
assertNotNull(calendarEntryData.getLocation());
assertNotNull(calendarEntryData.getOwnerEmailAddress());
assertNotNull(calendarEntryData.getOwnerIdentity());
assertNotNull(calendarEntryData.getOwnerName());
assertNotNull(calendarEntryData.getRepetitionType());
assertEquals(calendarEntry.tenant().id(), calendarEntryData.getTenantId());
assertNotNull(calendarEntryData.getInvitees());
assertTrue(calendarEntryData.getInvitees().isEmpty());
}