### Question:
PinpointDBUtil { public Uri saveEvent(final AnalyticsEvent event) { return pinpointDBBase.insert(pinpointDBBase.getContentUri(), generateContentValuesFromEvent(event)); } PinpointDBUtil(final Context context); void closeDB(); Uri saveEvent(final AnalyticsEvent event); Cursor queryAllEvents(); Cursor queryOldestEvents(final int limit); Cursor queryEventById(final int id); int deleteEvent(final int id, final Integer size); Uri getContentUri(); Uri getEventUri(final int id); long getTotalSize();  }### Answer:
@Test public void testInsertSingleEvent() throws Exception { AnalyticsEvent analyticsEvent = AnalyticsEvent.newInstance(mockContext, SESSION_ID, SESSION_START, SESSION_END, SESSION_DURATION, TIME_STAMP, EVENT_NAME); Uri uri = dbUtil.saveEvent(analyticsEvent); int idInserted = Integer.parseInt(uri.getLastPathSegment()); assertNotEquals(idInserted, 0); }