SyntaxFix
Write A Post
Hire A Developer
Questions
How about:
when(a.method(isA(A.class))).thenReturn(b);
or:
when(a.method((A)notNull())).thenReturn(b);