StringToFileConverter extends AbstractGenericConverter<String, File> { @Override public File convert(String source) { return new File(source); }  @Override File convert(String source);  }
@Test public void testConvert() { File file = converter.convert("path"); assertEquals("path", file.getName()); }