@Test
public void testConvertShouldThrowIllegalArgumentExceptionIfEnumValuesIsInvalid() {

    // Given:
    String data = "Val1";
    Class<?>[] parameterTypes = new Class<?>[] { TestEnum.class };
    expectedException.expect(IllegalArgumentException.class);
    expectedException.expectMessage(
            "'Val1' is not a valid value of enum 'TestEnum'. Please be aware of case sensitivity or use 'ignoreEnumCase'");
    // When:
    underTest.convert(data, false, parameterTypes, context, 51);
    // Then: expect exception
}