/**
  * @test
  */
 public function theStorageCanBeRetrievedAsArray()
 {
     $objectStorage = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
     $object1 = new \stdClass();
     $object2 = new \stdClass();
     $objectStorage->attach($object1, 'foo');
     $objectStorage->attach($object2, 'bar');
     $this->assertEquals(array($object1, $object2), $objectStorage->toArray());
     $this->assertEquals(array($object1, $object2), $objectStorage->getArray());
 }