title: Mockito ambiguous method call
body: <p>I'm trying to stub out a method call, e.g.</p>
  <pre><code>when(amazonDynamoDBClient.batchWriteItem(anyObject())).thenReturn(batchWriteItemResultMock);
  </code></pre>
  <p>I get this error</p>
  <pre><code>Error:(198, 34) java: reference to batchWriteItem is ambiguous
    both method batchWriteItem(com.amazonaws.services.dynamodbv2.model.BatchWriteItemRequest) in com.amazonaws.services.dynamodbv2.AmazonDynamoDBClient and method batchWriteItem(java.util.Map&lt;java.lang.String,java.util.List&lt;com.amazonaws.services.dynamodbv2.model.WriteRequest&gt;&gt;) in com.amazonaws.services.dynamodbv2.AmazonDynamoDBClient match
  </code></pre>
  <p>I can't see how this is ambiguous - the method signatures are different, i.e.</p>
  <pre><code>public BatchWriteItemResult batchWriteItem(BatchWriteItemRequest request) {
  </code></pre>
  <p>and</p>
  <pre><code>public BatchWriteItemResult batchWriteItem(Map&lt;String, List&lt;WriteRequest&gt;&gt; requestItems) {
  </code></pre>
  <p>What am I doing wrong here?</p>