package com.richashworth.planningpoker.tasks;

import com.richashworth.planningpoker.service.SessionManager;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Spy;
import org.mockito.runners.MockitoJUnitRunner;

import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;

/**
 * Created by Rich Ashworth on 14/08/2016.
 */
@RunWith(MockitoJUnitRunner.class)
public class ClearSessionsTaskTest {

    @InjectMocks
    private ClearSessionsTask clearSessionsTask;

    @Spy
    private SessionManager sessionManager;

    @Test
    public void testClearSessions() throws Exception {
        clearSessionsTask.clearSessions();
        verify(sessionManager, times(1)).clearSessions();
    }

}
@@ -344,16 +344,76 @@
 .verify;
+%0Aimport static org.mockito.Mockito.verifyNoMoreInteractions;
 %0A%0A/**%0A *
@@ -812,20 +812,70 @@
 Sessions();%0A
+        verifyNoMoreInteractions(sessionManager);%0A
     %7D%0A%0A%7D

add additional verification to test case