/**
  * @test
  * @dataProvider authorProvider
  */
 public function shouldFoundElementByAuthorName($author1, $author2)
 {
     $build = new Build();
     $build->setId(888);
     $build->setAuthorName($author1);
     $constructorArray = array(array('id' => 777, 'author_name' => $author2), $build);
     $buildCollection = new BuildCollection($constructorArray);
     $foundBuildCollection = $buildCollection->findBy(array('author_name' => $author2));
     $build = $buildCollection->findOneBy(array('author_name' => $author2));
     $this->assertCount(1, $foundBuildCollection);
     $this->assertEquals(777, $foundBuildCollection->first()->getId());
     $this->assertEquals(777, $build->getId());
 }