Forum forum = this.forumAggregate();
DomainRegistry.forumRepository().save(forum);
ForumData forumData =
forumQueryService.forumDataOfId(
forum.tenant().id(), forum.forumId().id());
assertNotNull(forumData);
assertEquals(forum.forumId().id(), forumData.getForumId());
assertEquals(forum.tenant().id(), forumData.getTenantId());
assertEquals(forum.creator().emailAddress(), forumData.getCreatorEmailAddress());
assertEquals(forum.creator().identity(), forumData.getCreatorIdentity());
assertEquals(forum.creator().name(), forumData.getCreatorName());
assertEquals(forum.description(), forumData.getDescription());
assertEquals(forum.exclusiveOwner(), forumData.getExclusiveOwner());
assertEquals(forum.isClosed(), forumData.isClosed());
assertEquals(forum.subject(), forumData.getSubject());
assertEquals(forum.moderator().emailAddress(), forumData.getModeratorEmailAddress());
assertEquals(forum.moderator().identity(), forumData.getModeratorIdentity());
assertEquals(forum.moderator().name(), forumData.getModeratorName());
}