/**
  * @testdox Entities fetched by id are turned into objects using the EntityBuilder
  */
 public function testGetById()
 {
     $this->builder->expects($this->any())->method('castToEntity')->with([$this->articles[1]])->willReturn([(object) $this->articles[1]]);
     $article = $this->dataMapper->getById(1);
     $this->assertEquals(1, $article->id);
 }