SyntaxFix
Write A Post
Hire A Developer
Questions
You can even chain doReturn() method invocations like this
doReturn()
doReturn(null).doReturn(anotherInstance).when(mock).method();
cute isn't it :)