/**
  * @test
  */
 public function removeVotingFromObjectStorageHoldingVotings()
 {
     $voting = new \Visol\EasyvoteEducation\Domain\Model\Voting();
     $votingsObjectStorageMock = $this->getMock('TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage', array('detach'), array(), '', FALSE);
     $votingsObjectStorageMock->expects($this->once())->method('detach')->with($this->equalTo($voting));
     $this->inject($this->subject, 'votings', $votingsObjectStorageMock);
     $this->subject->removeVoting($voting);
 }