public function testCanIterate()
 {
     $set = new OptionSet();
     $this->assertInstanceOf(\Traversable::class, $set->getIterator());
 }
 /**
  * Adds an option
  *
  * @param Option $option
  *
  * @throws \Noichl\ProductConfigurator\OptionSet\Exception\OptionMaxNumberExceededException
  *                If max number of options for an article is exceeded.
  * @throws \Noichl\ProductConfigurator\OptionSet\Exception\OptionNotAllowedException
  *                If the added option is not allowed.
  */
 public function addOption(Option $option)
 {
     $this->options->add($option);
 }