I need to send a specific value from a mock object based on a specific key value.
From the concrete class:
map.put(\"xpath\", \"PRICE\"); search(map); >
Doesn't this work?
Map map = new HashMap(); map.put("xpath", "PRICE"); when(mock.search(map)).thenReturn("$100.00");
The Map parameter should behave the same way as other parameters.
Map