@Test
public void shouldAllowNullWhenFlagIsSet() {

    EnumListValidator enumListValidator = createAndInitializeValidator(true, true);
    boolean valid = enumListValidator.isValid(null, createContext());
    assertThat(valid, is(true));
}