### Question:
DefaultEventClient implements InternalEventClient, JSONSerializable { @Override public void submitEvents() { Log.v(TAG, "Notifying deliveryClient"); deliveryClient.attemptDelivery(); } DefaultEventClient(final AnalyticsContext context, final boolean allowEventCollection); @Override void recordEvent(AnalyticsEvent event); @Override AnalyticsEvent createEvent(String eventType); @Override AnalyticsEvent createEvent(String eventType, boolean applyGlobalAttributes); @Override InternalEvent createInternalEvent(String eventType, long sessionStart, Long sessionEnd,
            Long sessionDuration); @Override void submitEvents(); @Override void addGlobalAttribute(String attributeName, String attributeValue); @Override void addGlobalAttribute(String eventType, String attributeName, String attributeValue); @Override void addGlobalMetric(String metricName, Double metricValue); @Override void addGlobalMetric(String eventType, String metricName, Double metricValue); @Override void addEventObserver(EventObserver observer); @Override void removeEventObserver(EventObserver observer); @Override void removeGlobalAttribute(String attributeName); @Override void removeGlobalAttribute(String eventType, String attributeName); @Override void removeGlobalMetric(String metricName); @Override void removeGlobalMetric(String eventType, String metricName); @Override String toString(); @Override JSONObject toJSONObject(); boolean getAllowEventCollection(); @Override void setSessionId(String sessionId); @Override void setSessionStartTime(long sessionStartTime); @Override String getSessionId(); @Override long getSessionStartTime();  }### Answer:
@Test public void submitEvents_attemptDeliveryCalled() { target.submitEvents(); verify(mockDeliveryClient, times(1)).attemptDelivery(); }