@Test
public void shouldFailForNullValue() {

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