ResolutionEvent extends InAppMessageEvent { static ResolutionEvent legacyMessagePushOpened(@NonNull String scheduleId) { JsonMap resolutionData = JsonMap.newBuilder() .put(RESOLUTION_TYPE, LEGACY_MESSAGE_DIRECT_OPEN) .build(); return new ResolutionEvent(JsonValue.wrap(scheduleId), InAppMessage.SOURCE_LEGACY_PUSH, resolutionData); } ResolutionEvent(@NonNull String scheduleId, @NonNull InAppMessage message, @NonNull JsonMap resolutionData);   ResolutionEvent(@NonNull JsonValue eventId, @NonNull String source, @NonNull JsonMap resolutionData); @NonNull @Override final String getType(); @NonNull @Override @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) JsonMap getEventData();  }
@Test public void testDirectOpenResolutionEvent() throws JSONException { ResolutionEvent event = ResolutionEvent.legacyMessagePushOpened("iam id"); JsonMap expectedResolutionInfo = JsonMap.newBuilder() .put("type", "direct_open") .build(); verifyEvent(expectedResolutionInfo, event); }