@Test
public void testValidate01() {

    CustomerBirthdayValidator validator = new CustomerBirthdayValidator();
    CustomerForm customer = new CustomerForm();
    customer.setCustomerBirthYear(2011);
    customer.setCustomerBirthMonth(2);
    customer.setCustomerBirthDay(28);
    BindingResult result = new DirectFieldBindingResult(customer, "CustomerForm");
    // run
    validator.validate(customer, result);
    // assert
    assertThat(result.hasErrors(), is(false));
}