Is there a way to match any class argument of the below sample routine?
class A { public B method(Class extends A> a) {} }
How
How about:
when(a.method(isA(A.class))).thenReturn(b);
or:
when(a.method((A)notNull())).thenReturn(b);