### Question:
AnalyticsClient implements JSONSerializable { public void recordEvent(AnalyticsEvent event) { if (event == null) { log.info("The provided event was null."); return; } final AnalyticsEvent recordEvent = AnalyticsEvent.createFromEvent(context, sessionId, System.currentTimeMillis(), event); eventRecorder.recordEvent(recordEvent); } 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 recordEvent_nullEvent_noObserverNotified() { final AnalyticsEvent event = null; target.recordEvent(event); verify(dbUtil, times(0)).saveEvent(any(AnalyticsEvent.class)); }