title: Using Mockito, how do I match against the key-value pair of a map?
body: <p>I need to send a specific value from a mock object based on a specific key value.</p>
  
  <p>From the concrete class:</p>
  
  <pre><code>map.put("xpath", "PRICE");
  search(map);
  </code></pre>
  
  <p>From the test case:</p>
  
  <pre><code>IOurXMLDocument mock = mock(IOurXMLDocument.class);
  when(mock.search(.....need help here).thenReturn("$100.00");
  </code></pre>
  
  <p>How do I mock this method call for this key value pair?</p>