/**
  * Tests setting and getting the data using Proxy class accessor methods.
  */
 public function testDataAccessors()
 {
     // Create a new Proxy and use accessors to set the data
     $proxy = new Proxy('colors');
     $proxy->setData(array('red', 'green', 'blue'));
     $data = $proxy->getData();
     // test assertions
     $this->assertTrue(sizeof($data) == 3, "Expecting data.length == 3");
     $this->assertTrue($data[0] == 'red', "Expecting data[0] == 'red'");
     $this->assertTrue($data[1] == 'green', "Expecting data[1] == 'green'");
     $this->assertTrue($data[2] == 'blue', "Expecting data[2] == 'blue'");
 }