/**
  * @param array $customersData
  * @return Customers
  */
 public static function createCustomers(array $customersData)
 {
     $customers = new Customers();
     foreach ($customersData as $customerData) {
         $customers->append(CustomerFactory::create($customerData));
     }
     return $customers;
 }
 /**
  * @expectedException InvalidArgumentException
  */
 public function test_append_an_invalid_customer_instance_should_rainse_an_exception()
 {
     $customers = new Customers();
     $customers->append(new \stdClass());
 }