public static URL toURL(java.nio.file.Path path) throws MalformedURLException {
        final String scheme = path.toUri().getScheme();
        return new URL(scheme, null, -1, path.toString());
    }
@Test
    void testAbsolutePathToURL() throws MalformedURLException {
        final java.nio.file.Path absolutePath = temporaryFolder.getRoot().toAbsolutePath();
        final URL absoluteURL = FileUtils.toURL(absolutePath);

        final java.nio.file.Path transformedURL = Paths.get(absoluteURL.getPath());
        assertThat(transformedURL).isEqualTo(absolutePath);
    }