final String email = "johndoe@mycia.com";
final String firstname = "John";
final String lastname = "Doe";
assertEquals(0, countCustomers(email, firstname, lastname));
CustomerCustomerEntityToCreate customer = new CustomerCustomerEntityToCreate();
customer.setEmail(email);
customer.setFirstname(firstname);
customer.setLastname(lastname);
customer.setPassword("123456");
customer.setGroup_id(1);
int customerId = connector.createCustomer(customer);
try
{
customer.setFirstname("Tom");
connector.updateCustomer(customer.getCustomer_id(), customer);
assertEquals("Tom",
connector.getCustomer(customerId, Arrays.asList("firstname")).getFirstname());
}
finally
{