}
}
public void testCreateAndUpdateAndRemoveCustomer() throws Exception {
log.info("Creating a customer");
Customer customer = new Customer("ra", "Rachida", "Ait-Ali");
dao.saveCustomer(customer);
Integer id = customer.getId();
customer = dao.getCustomer(id);
assertEquals(customer.getName(), "ra");
assertEquals(customer.getFirstName(), "Rachida");
log.info("Customer created: " + customer);
customer.setFirstName("Jan");
customer.setLastName("Willems");
dao.saveCustomer(customer);
log.info("Customer updated");
customer = dao.getCustomer(id);
assertEquals(customer.getName(), "ra");
assertEquals(customer.getFirstName(), "Jan");
log.info("Updated customer: " + customer);
dao.removeCustomer(customer);
log.info("Customer removed");
}