最佳答案
Mockito 提供:
when(mock.process(Matchers.any(List.class)));
如何避免警告,如果 process采取一个 List<Bar>而不是?