public function testFromCollectionCreatesNewArrayObject()
 {
     $initialData = array('foo', 'bar');
     $collection = $this->getMock('\\tjsd\\collections\\Collection');
     $collection->expects($this->once())->method('toArray')->will($this->returnValue($initialData));
     $newArrayObject = ArrayObject::fromCollection($collection);
     $this->assertSame($initialData, $newArrayObject->toArray());
 }