public function testDateRenameByYear()
 {
     $obj = new DummyEntity();
     $obj->setCreatedAt(new \DateTime('2013-05-21 12:12:12'));
     $propertyMapping = $this->getMappingWithObject($obj);
     $this->assertSame($this->namer->dateRename($propertyMapping, 'some-dir', array('field' => 'createdAt', 'depth' => 'year')), '2013');
 }