@Test
public void testConvertShouldCorrectlyParseEnumIgnoringCase() {

    // Given:
    String data = "Val1,val2";
    Class<?>[] parameterTypes = new Class<?>[] { TestEnum.class, TestEnum.class };
    when(context.getSplitBy()).thenReturn(",");
    when(context.isIgnoreEnumCase()).thenReturn(true);
    // When:
    Object[] result = underTest.convert(data, false, parameterTypes, context, 50);
    // Then:
    assertThat(result).containsExactly(TestEnum.VAL1, TestEnum.VAL2);
}