/**
  * 
  * @dataProvider writeInstantiationDataProvider
  * @param string $expected
  * @param string $classname
  * @param PhpArgumentCollection $arguments
  */
 public function testWriteInstantiation($expected, $classname, PhpArgumentCollection $arguments = null)
 {
     $access = new PhpStreamAccess($this->getStream());
     $access->writeInstantiation($classname, $arguments);
     $this->assertEquals($expected, $this->getStream()->getBinary());
 }