package org.gcube.data.access.storagehub.fuse; import java.nio.file.Paths; import org.gcube.data.access.storagehub.fs.StorageHubFS; import org.junit.Test; import jnr.ffi.Platform; public class FuseTest { @Test public void mount() { StorageHubFS memfs = new StorageHubFS("b7c80297-e4ed-42ab-ab42-fdc0b8b0eabf-98187548","/gcube"); try { String path; switch (Platform.getNativePlatform().getOS()) { case WINDOWS: path = "J:\\"; break; default: path = "/home/lucio/javaMount/mnt1"; } memfs.mount(Paths.get(path), true, true); } finally { memfs.umount(); } } }