@Test(expectedExceptions = IllegalArgumentException.class)
public void testEnumShouldFailInvalidEnumIndex(){

  final int invalidIndex = MockEnum.class.getEnumConstants().length + 1;
  Conversions.variantToEnum(invalidIndex, MockEnum.class);
}