public function testAddAndRemoveRelatedOption()
 {
     $masterOption = new AttributeOption();
     $masterOption->setValue('master');
     $firstOption = new AttributeOption();
     $firstOption->setValue('first');
     $secondOption = new AttributeOption();
     $secondOption->setValue('second');
     $thirdOption = new AttributeOption();
     $thirdOption->setValue('third');
     $masterOption->addRelatedOption($firstOption);
     $masterOption->addRelatedOption($firstOption);
     $masterOption->addRelatedOption($secondOption);
     $masterOption->addRelatedOption($thirdOption);
     $masterOption->removeRelatedOption($firstOption);
     $masterOption->removeRelatedOption($firstOption);
     $this->assertEquals([$secondOption, $thirdOption], array_values($masterOption->getRelatedOptions()->toArray()));
 }