### Question:
EnumConverter implements Converter<Enum> { public Enum convertFromText(final String value, final Class<?> requiredType, final String optionContext) { final Class<Enum> enumClass = (Class<Enum>) requiredType; return Enum.valueOf(enumClass, value); }  Enum convertFromText(final String value, final Class<?> requiredType,
      final String optionContext); boolean getAllPossibleValues(final List<Completion> completions,
      final Class<?> requiredType, final String existingData, final String optionContext,
      final MethodTarget target); boolean supports(final Class<?> requiredType, final String optionContext);  }### Answer:
@Test public void testConvertFromText() { final Enum<?> result = enumConverter.convertFromText(Flavour.BANANA.name(), Flavour.class, "anything"); assertEquals(Flavour.BANANA, result); }