@Override
    public void onActivityStarted(Activity activity) {
        if (!SensorsDataDialogUtils.isSchemeActivity(activity) && !hasActivity(activity)) {
            if (mStartActivityCount == 0) {
                // 第一个页面进行页面信息解析
                buildScreenProperties(activity);
            }
            sendActivityHandleMessage(MESSAGE_CODE_START);
            addActivity(activity);
        }
    }
@Test
    public void onActivityStarted() throws InterruptedException {
        mActivityLifecycle.onActivityStarted(mActivity);
        mSensorsDataAPI.setTrackEventCallBack(new SensorsDataTrackEventCallBack() {
            @Override
            public boolean onTrackEvent(String eventName, JSONObject eventProperties) {
                System.out.println(eventName);
                System.out.println(eventProperties);
                assertTrue(SAHelper.checkPresetProperty(eventProperties));
                assertEquals("$AppStart", eventName);
                assertTrue(eventProperties.optBoolean("$is_first_time"));
                assertTrue(eventProperties.has("$screen_name"));
                assertTrue(eventProperties.optBoolean("$title"));
                return true;
            }
        });
        onActivityResumed();
        onActivityStopped();
    }