I am trying to use Mockito's argThat API:
verify(mockService).methodA(argThat((List ids, int b) -> ids.get(0).equals("123")));
mockService has methodA which takes two parameters: a List and a primitive integer.
But this gives me an error:
"Imcompatible parameter types in lambda expression".
The reason is that ArgumentMatcher's matches method takes only one argument.
So how can I do verification for such scenarios?