### Question:
AnalyticsClient implements JSONSerializable { public void submitEvents() { log.info("Submitting events."); eventRecorder.submitEvents(); } AnalyticsClient(final PinpointContext context); AnalyticsEvent createEvent(String eventType); void recordEvent(AnalyticsEvent event); void submitEvents(); void addGlobalAttribute(String attributeName,
                                   String attributeValue); void addGlobalAttribute(String eventType, String attributeName, String attributeValue); void addGlobalMetric(String metricName, Double metricValue); void addGlobalMetric(String eventType, String metricName,
                                Double metricValue); void removeGlobalAttribute(String attributeName); void removeGlobalAttribute(String eventType, String attributeName); void removeGlobalMetric(String metricName); void removeGlobalMetric(String eventType, String metricName); @Deprecated void setCampaignAttributes(Map<String, String> campaign); void updateEventSourceGlobally(final Map<String, String> attributes); @Override String toString(); @Override JSONObject toJSONObject(); void closeDB(); List<JSONObject> getAllEvents(); String getSessionId(); void setSessionId(String sessionId); long getSessionStartTime(); void setSessionStartTime(long sessionStartTime);  }### Answer:
@Test public void submitEvents_attemptDeliveryCalled() { target = mock(AnalyticsClient.class); target.submitEvents(); verify(target, times(1)).submitEvents(); }