/**
  * @test
  */
 public function tansientObjectsAreRecursivelyConverted()
 {
     $mockInnerValueObject2 = new ValueObjectFixture();
     $mockInnerValueObject2->name = 'foo';
     $mockInnerValueObject2->uid = 99;
     $mockInnerValueObject1 = new ValueObjectFixture();
     $mockInnerValueObject1->object = $mockInnerValueObject2;
     $mockValueObject = new ValueObjectFixture();
     $mockValueObject->object = $mockInnerValueObject1;
     $uriBuilder = new UriBuilder();
     $actualResult = $uriBuilder->convertTransientObjectToArray($mockValueObject);
     $expectedResult = array('name' => null, 'object' => array('name' => null, 'object' => 99, 'uid' => null, 'pid' => null), 'uid' => null, 'pid' => null);
     $this->assertEquals($expectedResult, $actualResult);
 }