title: How to write mockito junit for Resttemplate exchange method
body: <p>How to write mockito junit for the method below:</p>
  
  <pre><code>@Autowired
  RestTemplate restTemplate;
  
  ResponseEntity&lt;?&gt; execute(final String url, HttpMethod httpMethod,
                            HttpEntity&lt;?&gt; entityRequest,
                            String.class, 
                            Map&lt;String, String&gt; urlVariables){
      restTemplate.exchange(url, httpMethod, entityRequest, responseType, urlVariables);
  }
  </code></pre>
  
  <p>Please help me how to write.</p>