title: Ambiguous Method Call Mocking RestTemplate.exchange()
body: <p>Can't figure out the correct way to use matchers to identify which overload of the exchange method I am targetting. The call I am making:</p>
  
  <p><code>restTemplate.exchange(url, HttpMethod.PUT, httpEntity, Object.class)</code></p>
  
  <p>I've tried using any(Class.class), and a couple other things but nothing is working. There are 2 methods with a similar signature that I am trying to distinguish between:</p>
  
  <p><code>exchange(String url, HttpMethod method, @Nullable HttpEntity&lt;?&gt; requestEntity, Class&lt;T&gt; responseType)</code></p>
  
  <p>and</p>
  
  <p><code>exchange(String var1, HttpMethod var2, @Nullable HttpEntity&lt;?&gt; var3, ParameterizedTypeReference&lt;T&gt; var4)</code></p>
  
  <p>Here are my current imports related to Mockito:</p>
  
  <pre><code>import org.mockito.Mock;
  import org.mockito.MockitoAnnotations;
  
  import static org.junit.Assert.*;
  import static org.mockito.ArgumentMatchers.any;
  import static org.mockito.ArgumentMatchers.anyString;
  import static org.mockito.Mockito.*;
  </code></pre>
  
  <p>Has anyone been able to mock a call to this method that uses a Class as the 4th parameter instead of a ParameterizedTypeReference?</p>