package io.cloudbot.slack;

import com.ullink.slack.simpleslackapi.SlackSession;
import org.junit.Test;

import static org.mockito.Mockito.mock;

public class SlackServiceTest {

    private final DirectMessagePostedListener directMessagePostedListener = mock(DirectMessagePostedListener.class);
    private final SlackSession slackSession = mock(SlackSession.class);
    private final SlackService slackService = new SlackService(slackSession, directMessagePostedListener);

    @Test
    public void shouldName() throws Exception {
        slackService.listenForDirectMessage();
    }
}
@@ -137,16 +137,58 @@
 to.mock;
+%0Aimport static org.mockito.Mockito.verify;
 %0A%0Apublic
@@ -547,12 +547,19 @@
 ould
-Name
+AddListener
 () t
@@ -622,16 +622,101 @@
 ssage();
+%0A%0A        verify(slackSession).addMessagePostedListener(directMessagePostedListener);
 %0A    %7D%0A%7D

Add test coverage.