code: public Map<String, Object> authorize(String paymentId, int amount, Setup setup) {
          if (setup.getEnvironment() == SANDBOX_URL) {
              this.requestMaker = new RequestMaker(setup);
              RequestProperties props = new RequestPropertiesBuilder()
                      .method("GET")
                      .endpoint(String.format("%s?payment_id=%s&amount=%s", ENDPOINT_TO_AUTHORIZE, paymentId, amount))
                      .type(Payments.class)
                      .contentType(CONTENT_TYPE)
                      .build();
  
              return this.requestMaker.doRequest(props);
          }
          else {
              ErrorBuilder error = new ErrorBuilder()
                      .code("404")
                      .path("")
                      .description("Wrong environment! Only payments created on Sandbox environment can be manually authorized.");
  
              Errors errors = new Errors();
              errors.setError(error);
  
              throw new ValidationException(404, "Not Found", errors);
          }
      }
docs: This method is used to simulate the payment authorization. To make it, its necessary
  send the Moip payment external ID and the amount value.
  
  WARNING: This method can be used to request only Sandbox environment.
  
  @param   paymentId
  {@code String} the Moip payment external ID.
  
  @param   amount
  {@code int} the amount value that will be authorized.
  
  @param   setup
  {@code Setup} the setup obeject.
  
  @return  {@code Map<String, Object>}