public function testCreate()
 {
     $pricing = $this->dummyData->getPricing();
     $cartItem = $this->dummyData->getCartItem();
     $optionProduct = $this->dummyData->getOptionProduct();
     $optionProduct->getProduct()->setSku('LAA');
     $optionProduct->getProduct()->setShippingWeight(6);
     $cartItemOptionProduct = new CartItemOptionProduct();
     $cartItemOptionProduct->setOptionProduct($optionProduct);
     $cartItemOptionProduct->setCartItem($cartItem);
     $this->assertSame('LAA', $cartItemOptionProduct->getSku());
     $this->assertSame(6, $cartItemOptionProduct->getShippingWeight());
     $this->assertTrue($cartItemOptionProduct->getPrice($pricing) instanceof Price);
     $this->assertSame($optionProduct, $cartItemOptionProduct->getOptionProduct());
     $this->assertSame($cartItem, $cartItemOptionProduct->getCartItem());
 }
 /**
  * @return static
  */
 public function withOptionProduct(PricingInterface $pricing)
 {
     $this->entityDTO->optionProduct = $this->dtoBuilderFactory->getOptionProductDTOBuilder($this->entity->getOptionProduct())->withOption()->withProduct($pricing)->build();
     return $this;
 }