code: public static <T> Answer<T> returnsElementsOf(Collection<?> elements) {
          return (Answer<T>) new ReturnsElementsOf(elements);
      }
docs: Returns elements of the collection. Keeps returning the last element forever.
  Might be useful on occasion when you have a collection of elements to return.
  <p>
  <pre class="code"><code class="java">
  //this:
  when(mock.foo()).thenReturn(1, 2, 3);
  
  //is equivalent to:
  when(mock.foo()).thenAnswer(new ReturnsElementsOf(Arrays.asList(1, 2, 3)));
  </code></pre>
  
  @param elements The collection of elements to return.
  @return the answer
  
  @since 1.9.5