/**
  * @param array $customerData
  * @return Customer
  */
 public static function create(array $customerData)
 {
     self::validateRequiredFields($customerData);
     $customer = new Customer();
     $customer->setName($customerData["name"]);
     $customer->setCategory($customerData["category"]);
     $customer->setSeat($customerData["seat"]);
     return $customer;
 }
 public function testCreateCustomerXMLShouldReturnAFormattedString()
 {
     $customer = new Customer();
     $customer->setName("Fulano de tal");
     $customer->setCategory("DUMMY");
     $customer->setSeat(10);
     $customerXML = "<customer><name>Fulano de tal</name><category>DUMMY</category><seat>10</seat></customer>";
     $this->assertEquals(Client::createCustomerXML($customer), $customerXML);
 }