public function testProtectedProperty()
 {
     $test = new SupperClassExtension();
     $test->setName('name');
     $test->setTitle('title');
     $this->em->persist($test);
     $this->em->flush();
     $this->em->clear();
     $repo = $this->em->getRepository(self::TRANSLATION);
     $translations = $repo->findTranslations($test);
     $this->assertCount(0, $translations);
     $this->assertNotNull($test->getCreatedAt());
 }
 public function testProtectedProperty()
 {
     $test = new SupperClassExtension();
     $test->setName('name');
     $test->setTitle('title');
     $this->em->persist($test);
     $this->em->flush();
     $this->em->clear();
     $repo = $this->em->getRepository(self::TRANSLATION);
     $translations = $repo->findTranslations($test);
     $this->assertEquals(1, count($translations));
     $this->assertArrayHasKey('en_us', $translations);
     $this->assertEquals(2, count($translations['en_us']));
     $this->assertTrue($test->getCreatedAt() !== null);
 }