    @Test
    public void testToFile() throws Exception {

        Assert.assertNotEquals(IoUtils.toFile(Uri.fromFile(new File("."))), new File("."));
        Assert.assertEquals(IoUtils.toFile(Uri.fromFile(new File("."))), new File(".").getAbsoluteFile());
        Assert.assertEquals(IoUtils.toFile(Uri.fromFile(new File("/etc"))), new File("/etc"));
        Assert.assertEquals(IoUtils.toFile(Uri.parse("file:/a/b/c")), new File("/a/b/c"));
        Assert.assertNull(IoUtils.toFile(Uri.parse("http://www.example.com/b/c")));
    }