### Question:
FilePropertyConverter extends AbstractPropertyConverter { @Override public Object convert(String value, Context context) throws IllegalArgumentException { return new File(value); }  @Override boolean supports(Class<?> type); @Override Object convert(String value, Context context);  }### Answer:
@Test public void testFile() throws Exception { File file = new File("someFile"); assertThat((File) converter.convert(file.toString(), null), is(equalTo(file))); }