@Test
public void toFile() {

    assertNull(FileUtil.toFile(null));
    File file = new File(ClassLoaderUtil.getClasspath());
    try {
        assertEquals(file, FileUtil.toFile(file.toURI().toURL()));
    } catch (MalformedURLException e) {
        logger.error(e.getMessage(), e);
    }
}