SyntaxFix
Write A Post
Hire A Developer
Questions
Or, even cleaner:
when(mockFoo.someMethod()).thenReturn(obj1, obj2);