EventResolver extends UrbanAirshipResolver { void insertEvent(@NonNull Event event, @NonNull String sessionId) { String eventPayload = event.createEventPayload(sessionId); ContentValues values = new ContentValues(); values.put(EventsStorage.Events.COLUMN_NAME_TYPE, event.getType()); values.put(EventsStorage.Events.COLUMN_NAME_EVENT_ID, event.getEventId()); values.put(EventsStorage.Events.COLUMN_NAME_DATA, eventPayload); values.put(EventsStorage.Events.COLUMN_NAME_TIME, event.getTime()); values.put(EventsStorage.Events.COLUMN_NAME_SESSION_ID, sessionId); values.put(EventsStorage.Events.COLUMN_NAME_EVENT_SIZE, eventPayload.length()); insert(uri, values); } EventResolver(@NonNull Context context);  @NonNull
    static final String ASCENDING_SORT_ORDER; }
@Test public void testInsertEvent() { TestEvent event = new TestEvent("some-id"); eventResolver.insertEvent(event, "session id"); assertEquals(1, eventResolver.getEventCount()); Map<String, String> eventData = eventResolver.getEvents(1); assertEquals(1, eventData.size()); Assert.assertEquals(event.createEventPayload("session id"), eventData.get("some-id")); }