public function let(ConferenceInterface $repository, ConferenceFactory $factory)
 {
     $conference_to_save = new ConferenceEntity();
     $factory->conferenceEntity(array())->willReturn($conference_to_save);
     $conference_to_save_that_fails = new ConferenceEntity();
     $conference_to_save_that_fails->setName('Test');
     $factory->conferenceEntity(array('name' => 'fails'))->willReturn($conference_to_save_that_fails);
     $repository->getByName(null)->willReturn(false);
     $repository->save($conference_to_save)->willReturnArgument(0);
     $this->beConstructedWith($repository, $factory);
 }