### Question:
EnumType implements ArgumentType<T> { public String toText(T value) { if (value == null) { return ""; } return value.name(); } EnumType(Class<T> enumClass); T toObject(String value); String toText(T value);  }### Answer:
@Test public void testToText() throws Exception { assertEquals("AAA", enumType.toText(MyEnum.AAA)); }