/**
  * @test
  * @author Robert Lemke <*****@*****.**>
  */
 public function addingArgumentThroughArrayAccessWorks()
 {
     $arguments = new \F3\FLOW3\MVC\Controller\Arguments($this->getMock('F3\\FLOW3\\Object\\ObjectFactoryInterface'));
     $argument = new \F3\FLOW3\MVC\Controller\Argument('argumentName1234', 'Text');
     $arguments[] = $argument;
     $this->assertTrue($arguments->hasArgument('argumentName1234'), 'Added argument does not exist.');
     $this->assertSame($argument, $arguments->getArgument('argumentName1234'), 'Added and retrieved arguments are not the same.');
 }