public void callLogin(String loginId) {
        if (mFunctionListener == null) {
            return;
        }
        JSONObject jsonObject = new JSONObject();
        try {
            jsonObject.put("distinctId", loginId);
            call("login",jsonObject);
        } catch (JSONException e) {
            SALog.printStackTrace(e);
        }
    }
@Test
    public void callLogin() {
        SensorsDataAPI sensorsDataAPI = SAHelper.initSensors(mApplication);
        sensorsDataAPI.addFunctionListener(new SAFunctionListener() {
            @Override
            public void call(String function, JSONObject args) {
                Assert.assertEquals("login", function);
            }
        });
        TrackMonitor.getInstance().callLogin("loginIds");
    }