public function testMagicGetter()
 {
     $value = 'test value';
     $property = 'foo_bar';
     $camelCase = 'FooBar';
     $this->assertNull($this->entity->getFooBar());
     $this->entity->fromArray(array($property => $value));
     $mapper = $this->createMapperMock();
     $mapper->expects($this->once())->method('camelCaseToProperty')->with($camelCase)->will($this->returnValue($property));
     $this->entity->setPropertyMapper($mapper);
     $this->assertSame($value, $this->entity->getFooBar());
 }