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