title: mocking resttemplate exchange always returns null
body: <p>I'm trying to mock a restTemplate.exchange method through mockito but it always returns a null value no matter what i return through mock , even if i throw an exception:</p>
  
  <p>this is the actual code : </p>
  
  <pre><code>ResponseEntity&lt;List&lt;LOV&gt;&gt; response = restTemplate.exchange(url, GET, null,new ParameterizedTypeReference&lt;List&lt;LOV&gt;&gt;() {});
  </code></pre>
  
  <p>mockito code:</p>
  
  <pre><code> ResponseEntity&lt;List&lt;LOV&gt;&gt; mockResponse = new ResponseEntity&lt;List&lt;LOV&gt;&gt;(mockLovList() ,HttpStatus.ACCEPTED);
  
  Mockito.when(restTemplate.exchange(any(), eq(GET), any(), ArgumentMatchers.&lt;ParameterizedTypeReference&lt;List&lt;LOV&gt;&gt;&gt;any())).thenReturn(mockResponse);
  </code></pre>
  
  <p>Every argument is of type ArgumentMatchers in the exchange mock , 
  mockLovList() returns a list of LOV</p>
  
  <p>it should return whatever i mocked , but it always returns null</p>