public function testFinalizeMap()
 {
     $data = Util::loadData('child');
     $obj = GraphObjectChild::map($data, 'test-finalize-map');
     $this->assertSame('astringvalue', $obj->aString);
     $this->assertSame(5, $obj->anInteger);
     $this->assertSame(false, $obj->aBoolean);
     $this->assertTrue(Util::arrays_are_similar(array('a', 'b', 'c', 'd'), $obj->flatArray));
     $this->assertSame(7.0, $obj->aDouble);
     $this->assertSame('anotherstringvalue__append_finalize_value', $obj->childValueStr);
     $this->assertSame(true, $obj->childValueBool);
     $this->assertInstanceOf('Nuad\\Graph\\Test\\GraphObjectChild', $obj);
 }
 public function testInjectInheritance_withExpectedValues()
 {
     $data = Util::loadData('child_expected');
     $obj = GraphObjectChild::inject($data);
     $this->assertSame('astringvalue', $obj->aString);
     $this->assertSame(7, $obj->anInteger);
     $this->assertSame(false, $obj->aBoolean);
     $this->assertTrue(Util::arrays_are_similar(array('a', 'b', 'c', 'd'), $obj->flatArray));
     $this->assertSame(5.5, $obj->aDouble);
     $this->assertSame('anotherstringvalue_appendedByTheConstructor', $obj->childValueStr);
     $this->assertSame(true, $obj->childValueBool);
     $this->assertInstanceOf('Nuad\\Graph\\Test\\GraphObjectChild', $obj);
 }