public static PowerMockitoStubber doReturn(Object toBeReturned, Object... othersToBeReturned) {
        return POWERMOCKITO_CORE.doAnswer(toBeReturned, othersToBeReturned);
    }
public static PowerMockitoStubber doReturn ( Object toBeReturned , Object ... othersToBeReturned ) { return POWERMOCKITO_CORE . doAnswer ( toBeReturned , othersToBeReturned ) ; }
Same as {@link #doReturn(Object)} but sets consecutive values to be returned. Remember to use
<code>doReturn()</code> in those rare occasions when you cannot use {@link PowerMockito#when(Object)}.
<p>
<b>Beware that {@link PowerMockito#when(Object)} is always recommended for stubbing because it is argument type-safe
and more readable</b> (especially when stubbing consecutive calls).
<p>
Here are those rare occasions when doReturn() comes handy:
<p>
<p>
<ol>
<li>When spying real objects and calling real methods on a spy brings side effects
<p>
<pre class="code"><code class="java">
List list = new LinkedList();
List spy = spy(list);
<p>
//Impossible: real method is called so spy.get(0) throws IndexOutOfBoundsException (the list is yet empty)
when(spy.get(0)).thenReturn("foo", "bar", "qix");
<p>
//You have to use doReturn() for stubbing:
doReturn("foo", "bar", "qix").when(spy).get(0);
</code></pre>
</li>
<p>
<li>Overriding a previous exception-stubbing:
<pre class="code"><code class="java">
when(mock.foo()).thenThrow(new RuntimeException());
<p>
//Impossible: the exception-stubbed foo() method is called so RuntimeException is thrown.
when(mock.foo()).thenReturn("bar", "foo", "qix");
<p>
//You have to use doReturn() for stubbing:
doReturn("bar", "foo", "qix").when(mock).foo();
</code></pre>
</li>
</ol>
<p>
Above scenarios shows a trade-off of Mockito's elegant syntax. Note that the scenarios are very rare, though.
Spying should be sporadic and overriding exception-stubbing is very rare. Not to mention that in general
overriding stubbing is a potential code smell that points out too much stubbing.
<p>
See examples in javadoc for {@link PowerMockito} class

@param toBeReturned       to be returned when the stubbed method is called
@param othersToBeReturned to be returned in consecutive calls when the stubbed method is called
@return stubber - to select a method for stubbing
@since 1.6.5