### Question:
EnumConverter implements ValueConverter<E> { @Override public E convert( String value ) { for ( E each : valueType().getEnumConstants() ) { if ( each.name().equalsIgnoreCase( value ) ) { return each; } } throw new ValueConversionException( message( value ) ); } protected  EnumConverter( Class<E> clazz ); @Override E convert( String value ); @Override Class<E> valueType(); void setDelimiters( String delimiters ); @Override String valuePattern();  }### Answer:
@Test public void convertsEnumValuesToEnum() { assertEquals( TestEnum.A, converter.convert( "A" ) ); }
@Test public void rejectsNonEnumeratedValues() { thrown.expect( ValueConversionException.class ); converter.convert( "Z" ); }
@Test public void ignoresCase() { assertEquals( TestEnum.A, converter.convert( "a" ) ); }