public function testCreateDefaults()
 {
     $catalogPromotion = new CatalogPromotion();
     $this->assertTrue($catalogPromotion->getId() instanceof UuidInterface);
     $this->assertTrue($catalogPromotion->getCreated() instanceof DateTime);
     $this->assertSame('d', $catalogPromotion->getCode());
     $this->assertSame(null, $catalogPromotion->getTag());
 }
 protected function preBuild()
 {
     parent::preBuild();
     $this->entityDTO->code = $this->entity->getCode();
 }