@Test
public void testConvertShouldThrowIllegalArgumentExceptionIfEnumValueIsInvalid() {

    // Given:
    String data = "UNKNOW_ENUM_VALUE";
    Class<?>[] parameterTypes = new Class<?>[] { TestEnum.class };
    expectedException.expect(IllegalArgumentException.class);
    expectedException.expectMessage(
            "'UNKNOW_ENUM_VALUE' 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
}