ParseRESTUserCommand extends ParseRESTCommand { @Override protected void addAdditionalHeaders(ParseHttpRequest.Builder requestBuilder) { super.addAdditionalHeaders(requestBuilder); if (isRevocableSessionEnabled) { requestBuilder.addHeader(HEADER_REVOCABLE_SESSION, HEADER_TRUE); } } private  ParseRESTUserCommand(
            String httpPath,
            ParseHttpRequest.Method httpMethod,
            Map<String, ?> parameters,
            String sessionToken); private  ParseRESTUserCommand(
            String httpPath,
            ParseHttpRequest.Method httpMethod,
            Map<String, ?> parameters,
            String sessionToken, boolean isRevocableSessionEnabled); private  ParseRESTUserCommand(
            String httpPath,
            ParseHttpRequest.Method httpMethod,
            JSONObject parameters,
            String sessionToken, boolean isRevocableSessionEnabled); static ParseRESTUserCommand getCurrentUserCommand(String sessionToken); static ParseRESTUserCommand signUpUserCommand(JSONObject parameters, String sessionToken,
                                                         boolean revocableSession); static ParseRESTUserCommand logInUserCommand(String username, String password,
                                                        boolean revocableSession); static ParseRESTUserCommand serviceLogInUserCommand(
            String authType, Map<String, String> authData, boolean revocableSession); static ParseRESTUserCommand serviceLogInUserCommand(JSONObject parameters,
                                                               String sessionToken, boolean revocableSession); static ParseRESTUserCommand resetPasswordResetCommand(String email); int getStatusCode();  }
@Test public void testAddAdditionalHeaders() throws Exception { JSONObject parameters = new JSONObject(); parameters.put("key", "value"); ParseRESTUserCommand command = ParseRESTUserCommand.signUpUserCommand(parameters, "sessionToken", true); ParseHttpRequest.Builder requestBuilder = new ParseHttpRequest.Builder(); command.addAdditionalHeaders(requestBuilder); assertEquals("1", requestBuilder.build().getHeader("X-Parse-Revocable-Session")); }