I am need to send a return specific value from a mock object based on a specific key value.
concreate class:
map.put("xpath", "PRICE");
search(map);
Test case:
IOurXMLDocument mock = mock(IOurXMLDocument.class);
when(mock.search(.....need help here).thenReturn("$100.00");
how do I mock this method call for this key value pair?