*/
public static void setIteratorContents(ExpectationBuilder expectations,
final IteratorMock iteratorMock,
final Object [] contents) {
expectations.add(new OrderedExpectations() {
public void add() {
for (int i = 0; i < contents.length; i++) {
Object content = contents[i];
iteratorMock.expects.hasNext().returns(true).atLeast(1);
iteratorMock.expects.next().returns(content);