EnumValueConverter extends AbstractValueConverter<T> { @Override public String toString(T value) { if (value == null) { return null; } return value.name(); } EnumValueConverter(Class<T> enumClass); @Override T convert(String name); @Override String toString(T value);  }
@Test public void testToStringNull() throws Exception { assertNull(converter.toString(null)); }