@Test
public void publishEvent_noPublisherExists() {

    when(publishDelegateTestObject.publisherDao.findPublisher(contextId, contextType, sourceId, sourceType)).thenReturn(null);
    PublishEventTO invalidPublishEventTO = PublishEventTO.getValidInstance(ContextType.COURSE, contextId, contextTitle, subcontextId,
            ForumNotificationTypeHandler.FORUM_SOURCE_TYPE, sourceId, sourceTitle, sourceEntryTitle, creatorIdentity, EventType.NEW);
    invalidPublishEventTO.setSourceEntryId("4");
    assertEquals("", 0, publishDelegateTestObject.publishEvent(invalidPublishEventTO));
}