public function testFinalizeInject()
 {
     $data = Util::loadData('base');
     $obj = GraphObjectBase::inject($data, 'test-finalize-inject');
     $this->assertSame('thisisthefinalizedstring', $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(7.0, $obj->aDouble);
     $this->assertInstanceOf('Nuad\\Graph\\Test\\GraphObjectBase', $obj);
 }
 public function testInjectObjectBase()
 {
     $data = Util::loadData('base');
     $obj = GraphObjectBase::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->assertInstanceOf('Nuad\\Graph\\Test\\GraphObjectBase', $obj);
 }