### Question:
DefaultSessionClient implements InternalSessionClient { @Override public synchronized void pauseSession() { state.pause(); } DefaultSessionClient(final AnalyticsContext context,
            final InternalEventClient eventClient, final SessionStore sessionStore); @Override synchronized void startSession(); @Override synchronized void stopSession(); @Override synchronized void pauseSession(); @Override synchronized void resumeSession(); @Override String toString(); long getRestartDelay(); long getResumeDelay(); static final String SESSION_START_EVENT_TYPE; static final String SESSION_STOP_EVENT_TYPE; static final String SESSION_PAUSE_EVENT_TYPE; static final String SESSION_RESUME_EVENT_TYPE; }### Answer:
@Test public void pauseSession_sessionIsInactive_firesNoEvent() { target.pauseSession(); target.pauseSession(); target.pauseSession(); verify(mockEventClient, times(0)).createEvent(any(String.class)); verify(mockEventClient, times(0)).createInternalEvent( any(String.class), any(Long.class), any(Long.class), any(Long.class)); }