assertThat(target.requiredMessageKey, is("validator.required"));
}
@Test
public void apply_Required_messageKey() throws Exception {
target.apply("name", formMessage, new RequiredImpl("custom_message"));
assertThat(target.name, is("name"));
assertThat(target.label, is("name"));
assertThat(target.isRequired(), is(true));
assertThat(target.validators.size(), is(0));
assertThat(target.requiredMessageKey, is("custom_message"));