/**
  * @test
  */
 public function thatUpdate()
 {
     $branch = new Branch('DUMM', 'DUMMY_NAME', 'DUMMY_DESC');
     $branchEmailConfiguration = new BranchEmailConfiguration($branch, self::DUMMY_CUSTOMER_DOMAINS, self::DUMMY_SUPPORT_ADDRESS);
     $branchEmailConfiguration->update('New Customer Domains', 'New Support Address');
     $this->assertEquals('New Customer Domains', $branchEmailConfiguration->getCustomerDomains());
     $this->assertEquals('New Support Address', $branchEmailConfiguration->getSupportAddress());
 }
 public static function fromBranchEmailConfiguration(BranchEmailConfiguration $branchEmailConfiguration)
 {
     $command = new self();
     $command->id = $branchEmailConfiguration->getId();
     $command->branch = $branchEmailConfiguration->getBranch();
     $command->customerDomains = $branchEmailConfiguration->getCustomerDomains();
     $command->supportAddress = $branchEmailConfiguration->getSupportAddress();
     return $command;
 }