public TestUser createTestUser(String appId, String name, String locale, String permissions, boolean installed) throws FacebookException {
        ensureAuthorizationEnabled();
        String _locale = "en_US";
        if (locale != null) _locale = locale;
        String url = conf.getRestBaseURL() + appId + "/accounts/test-users" +
                    "?installed=" + Boolean.toString(installed) +
                    "&locale=" + HttpParameter.encode(_locale);
        if (name != null) {
            url += "&name=" + HttpParameter.encode(name);
        }
        if (permissions != null) {
            url += "&permissions=" + HttpParameter.encode(permissions);
        }
        return factory.createTestUser(post(url));
    }