@Test
public void shouldAllowNullWhenFlagIsSet() {

    EnumValidator enumValidator =  createAndInitializeValidator(true, true);
    boolean valid = enumValidator.isValid(null, null);
    assertThat(valid, is(true));
}