public function testRemoveElementInArrayCollection()
 {
     $collection = new ArrayCollection(array('first', 'last'));
     $this->assertEquals('first', $collection->first());
     $this->assertTrue($collection->removeElement('first'));
     $this->assertEquals('last', $collection->first());
     $this->assertFalse($collection->removeElement('second'));
 }