/**
  * Tests that multiple records are mapped similarly.
  */
 public function testMapCollection()
 {
     $mapped = $this->mapper->mapCollection(new \ArrayIterator([[1], [2]]), new AnonymousMapping($record = ['foo']));
     self::assertSame([$record, $record], iterator_to_array($mapped));
 }