<BUG>return Task.ofType(String.class).named("Enums", enm).process(enm::toString);</BUG><CONTEXT>assertThat(parsedEnum, is(CustomEnum.BAR));}@RootTaskpublic static Task<String> enums(CustomEnum enm) {parsedEnum = enm;<extra_id_0>}@Testpublic void shouldParseCustomTypes() throws Exception {</CONTEXT>
return Task.named("Enums", enm).ofType(String.class).process(enm::toString);