### Question:
SessionClient { public synchronized void resumeSession() { if (getSessionState().equals(SessionState.PAUSED)) { executeResume(); } else { final AnalyticsEvent e = this.pinpointContext.getAnalyticsClient().createEvent(SESSION_RESUME_EVENT_TYPE); this.pinpointContext.getAnalyticsClient().recordEvent(e); log.warn("Session Resume Failed: No session is paused."); } } 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 resumeSession_sessionIsInactive_firesBlankResumeEvent() { target.resumeSession(); target.resumeSession(); target.resumeSession(); verify(mockAnalyticsClient, times(3)).createEvent( eq(SESSION_RESUME_EVENT_TYPE)); }