public JSONObject getPresetProperties() {
        try {
            if (presetProperty == null) {
                JSONObject jsonObject = getPreset();
                presetProperty = new JSONObject(jsonObject.toString());
            }
            String networkType = NetworkUtils.networkType(mContext);
            presetProperty.put("$wifi", "WIFI".equals(networkType));
            presetProperty.put("$network_type", networkType);
            return new JSONObject(presetProperty.toString());
        } catch (JSONException e) {
            SALog.printStackTrace(e);
        }
        return new JSONObject();
    }
@Test
    public void getPresetProperties() {
        SensorsDataAPI sensorsDataAPI = SAHelper.initSensors(mApplication);
        SAPresetPropertyPlugin presetPropertyPlugin = new SAPresetPropertyPlugin(sensorsDataAPI.getSAContextManager());
        JSONObject jsonObject = presetPropertyPlugin.getPresetProperties();
        SAHelper.checkPresetProperty(jsonObject, sensorsDataAPI);
    }