public function testReference() { $this->assertSame($this->entity, $this->entity->setReference('Foo')); $this->assertSame('Foo', $this->entity->getReference()); }