public static void parseDeepLink(final Activity activity, final boolean isSaveDeepLinkInfo) {
        try {
            if (!isDeepLink(activity.getIntent()) || isParsedDeepLink(activity)) {
                return;
            }
            Intent intent = activity.getIntent();
            mDeepLinkProcessor = createDeepLink(intent, SensorsDataAPI.sharedInstance().getServerUrl(), SensorsDataAPI.getConfigOptions().getCustomADChannelUrl());
            if (mDeepLinkProcessor == null) {
                return;
            }
            // 清除本地 utm 属性
            ChannelUtils.clearUtm();
            mIsDeepLink = true;
            //清除本地 utm 属性
            // 注册 DeepLink 解析完成 callback.
            mDeepLinkProcessor.setDeepLinkParseFinishCallback(new OnDeepLinkParseFinishCallback() {
                @Override
                public void onFinish(DeepLinkType deepLinkStatus, String params, JSONObject customParams, boolean success, long duration) {
                    if (isSaveDeepLinkInfo) {
                        ChannelUtils.saveDeepLinkInfo();
                    }

                    SAEventBus.getInstance().post(SAEventBusConstants.Tag.DEEPLINK_LAUNCH, ChannelUtils.getLatestUtmProperties());
                    if (deepLinkStatus == DeepLinkType.SENSORSDATA) {
                        try {
                            if (null != mDeferredDeepLinkCallback) {
                                mDeferredDeepLinkCallback.onReceive(new SADeepLinkObject(params, customParams, "", success, duration));
                            } else if (null != mDeepLinkCallback) {
                                mDeepLinkCallback.onReceive(params, success, duration);
                            }
                        } catch (Exception e) {
                            SALog.printStackTrace(e);
                        }
                    }
                }
            });
            mDeepLinkProcessor.parseDeepLink(intent);
            // 缓存 Deeplink 信息到内存中
            cacheProperties();
            //触发 $AppDeeplinkLaunch 事件
            DeepLinkManager.trackDeepLinkLaunchEvent(activity.getApplicationContext(), mDeepLinkProcessor);
            activity.getIntent().putExtra(DeepLinkManager.IS_ANALYTICS_DEEPLINK, true);
        } catch (Exception ex) {
            SALog.printStackTrace(ex);
        }
    }
@Test
    public void parseDeepLink() {
        Activity activity = Robolectric.setupActivity(DeepActivity.class);
        DeepLinkManager.parseDeepLink(activity, true);
    }