### Question:
SessionClient { public synchronized void pauseSession() { if (getSessionState().equals(SessionState.ACTIVE)) { executePause(); } } SessionClient(final PinpointContext pinpointContext); synchronized void startSession(); synchronized void stopSession(); synchronized void pauseSession(); synchronized void resumeSession(); @Override String toString(); 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(mockAnalyticsClient, times(0)).createEvent(any(String.class)); verify(mockAnalyticsClient, times(0)).createEvent( any(String.class), any(Long.class), any(Long.class), any(Long.class)); }