super(name);
}
public void testEmail() {
Validator validator = ApacheValidatorFactory.getDefault().getValidator();
Customer customer = new Customer();
customer.setCustomerId("id-1");
customer.setFirstName("Mary");
customer.setLastName("Do");
customer.setPassword("12345");
Assert.assertEquals(0, validator.validate(customer).size());
customer.setEmailAddress("some@invalid@address");
Assert.assertEquals(1, validator.validate(customer).size());
customer.setEmailAddress("some.valid-012345@address_at-test.org");
Assert.assertEquals(0, validator.validate(customer).size());
}