define mockito when with multiple any arguments
<p>I am trying to define <code>when</code> mockito method with multiple <code>any</code> arguments:</p>

<pre><code>TestBedDaoClient testBedDaoClient = mock(TestBedDaoClient.class);
when(testBedDaoClient.addTestBed(anyString(), anyString(), any(VCloudConfiguration.class))).thenReturn(testBedPojoMockData);
</code></pre>

<p>In target test class:</p>

<pre><code>TestBedPojo addedTestBedPojo = testBedDaoClient.addTestBed(testBedName, testBedDescription, vCloudConfiguration);
</code></pre>

<p>In DAO client:</p>

<pre><code>public TestBedPojo addTestBed(String testBedName, String testBedDescription, VCloudConfiguration vCloudConfiguration){
     return testBedPojo;
}
</code></pre>

<p>I wanted to define <code>when</code> in such a way that it returns <code>testBedPojoMockData</code> with any values of arguments. But I am getting error: <code>Argument(s) are different!</code></p>

<p>I even tried:</p>

<pre><code>when(testBedDaoClient.addTestBed("test", "test", any(VCloudConfiguration.class))).thenReturn(testBedPojoMockData);
when(testBedDaoClient.addTestBed(any(), any(), any())).thenReturn(testBedPojoMockData);
</code></pre>

<p>But no luck. How I can define this <code>when</code> so that it returns the mock data on any call?</p>