EasyMock.expect(channelDefinition.getName()).andReturn("TestChannelDef").anyTimes();
EasyMock.replay(channelDefinition);
portalEvent = new PublishedChannelDefinitionPortalEvent(this, person, channelDefinition);
this.jpaPortalEventStore.storePortalEvents(portalEvent);
this.checkPoint();
assertEquals(1, this.countRowsInTable("STATS_SESSION"));
assertEquals(0, this.countRowsInTable("STATS_SESSION_GROUPS"));