@Test
public void testValidate04() {

    CustomerPassEqualsValidator validator = new CustomerPassEqualsValidator();
    CustomerForm customer = new CustomerForm();
    customer.setCustomerPassConfirm("12345");
    BindingResult result = new DirectFieldBindingResult(customer, "CustomerForm");
    // run
    validator.validate(customer, result);
    // assert
    assertThat(result.hasErrors(), is(false));
    assertThat(result.getErrorCount(), is(0));
}