public static OutputStreamAndPath createEntropyAware(
            FileSystem fs, Path path, WriteMode writeMode) throws IOException {

        final Path processedPath = addEntropy(fs, path);

        // create the stream on the original file system to let the safety net
        // take its effect
        final FSDataOutputStream out = fs.create(processedPath, writeMode);
        return new OutputStreamAndPath(out, processedPath);
    }
@Test
    void testCreateEntropyAwarePlainFs() throws Exception {
        File folder = TempDirUtils.newFolder(tempFolder);
        Path path = new Path(Path.fromLocalFile(folder), "_entropy_/file");

        OutputStreamAndPath out =
                EntropyInjector.createEntropyAware(
                        LocalFileSystem.getSharedInstance(), path, WriteMode.NO_OVERWRITE);

        out.stream().close();

        assertThat(out.path()).isEqualTo(path);
        assertThat(new File(new File(folder, "_entropy_"), "file")).exists();
    }