### Question:
FileType implements ArgumentType<File> { public String toText(File value) { if (value == null) { return ""; } String path = FileUtil.getCanonicalPath(value); return ArgumentUtil.encode(path); }  File toObject(String value); String toText(File value);  }### Answer:
@Test public void testToText() throws Exception { assertEquals("'" + new File("hoge").getCanonicalPath() + "'", fileType .toText(new File("hoge"))); }