    @Test
    @Ignore
    public void testDefaultToJSONObject() {

        Config config = Config.getDefault();
        ReadableMap map = ConfigMapper.toMap(config);

        Assert.assertEquals(config.getStationaryRadius(), map.getDouble("stationaryRadius"), 0f);
        Assert.assertEquals(config.getDistanceFilter().intValue(), map.getInt("distanceFilter"));
        Assert.assertEquals(config.getDesiredAccuracy().intValue(), map.getInt("desiredAccuracy"));
        Assert.assertEquals(config.isDebugging().booleanValue(), map.getBoolean("debug"));
        Assert.assertEquals(config.getNotificationTitle(), map.getString("notificationTitle"));
        Assert.assertEquals(config.getNotificationText(), map.getString("notificationText"));
        Assert.assertEquals(config.getStopOnTerminate().booleanValue(), map.getBoolean("stopOnTerminate"));
        Assert.assertEquals(config.getStartOnBoot().booleanValue(), map.getBoolean("startOnBoot"));
        Assert.assertEquals(config.getLocationProvider().intValue(), map.getInt("locationProvider"));
        Assert.assertEquals(config.getInterval().intValue(), map.getInt("interval"));
        Assert.assertEquals(config.getFastestInterval().intValue(), map.getInt("fastestInterval"));
        Assert.assertEquals(config.getActivitiesInterval().intValue(), map.getInt("activitiesInterval"));
        Assert.assertEquals(config.getNotificationIconColor(), map.getString("notificationIconColor"));
        Assert.assertEquals(config.getLargeNotificationIcon(), map.getString("notificationIconLarge"));
        Assert.assertEquals(config.getSmallNotificationIcon(), map.getString("notificationIconSmall"));
        Assert.assertEquals(config.getStartForeground().booleanValue(), map.getBoolean("startForeground"));
        Assert.assertEquals(config.getStopOnStillActivity().booleanValue(), map.getBoolean("stopOnStillActivity"));
        Assert.assertEquals(config.getUrl(), map.getString("url"));
        Assert.assertEquals(config.getSyncUrl(), map.getString("syncUrl"));
        Assert.assertEquals(config.getSyncThreshold().intValue(), map.getInt("syncThreshold"));
//        Assert.assertEquals(new JSONObject(config.getHttpHeaders()).toString(), map.getJSONObject("httpHeaders").toString());
        Assert.assertEquals(config.getMaxLocations().intValue(), map.getInt("maxLocations"));
//        Assert.assertEquals(LocationTemplateFactory.getDefault().toString(), map.get("postTemplate").toString());

    }