@Test
public void addTopMessage() {

    Forum mockForum = mock(Forum.class);
    when(mockForum.getResourceableId()).thenReturn(new Long(1234));
    Identity initiatorIdentity = mock(Identity.class);
    Message firstMessage = new MessageMockImpl();
    publishEventTO = createPublishEventTO(initiatorIdentity);
    forumService.addTopMessage(mockForum, firstMessage, initiatorIdentity, publishEventTO);
    assertEquals(mockForum, firstMessage.getForum());
    assertEquals(initiatorIdentity, firstMessage.getCreator());
    assertEquals(null, firstMessage.getParent());
    assertEquals(null, firstMessage.getThreadtop());
}