### Question:
EnumConverter implements MapperConfig.CustomEnumConverter<T> { @Override public String toString(final T instance) { return instance != null ? instance.name() : null; } EnumConverter(final Class<T> aClass); @Override // no need of cache here, it is already fast String toString(final T instance); @Override T fromString(final String text); @Override String toString(); @Override Type type();  }### Answer:
@Test public void fromEnumToString() { assertEquals("B", new EnumConverter<AnEnum>(AnEnum.class).toString(AnEnum.B)); }