@Override
    public Local create(final Path file) {
        return this.create(String.format("%s-%s", new AlphanumericRandomStringService().random(), file.getName()));
    }
@Test
    public void testTemporaryPath() {
        final Path file = new Path("/f1/f2/t.txt", EnumSet.of(Path.Type.file));
        file.attributes().setDuplicate(true);
        file.attributes().setVersionId("1");
        final Local local = new FlatTemporaryFileService().create(file);
        assertTrue(local.getParent().exists());
        assertEquals("t.txt", file.getName());
        assertNotEquals("t.txt", local.getName());
        assertTrue(local.getName().endsWith("-t.txt"));
        assertEquals(LocalFactory.get(PreferencesFactory.get().getProperty("tmp.dir")), LocalFactory.get(local.getParent().getAbsolute()));
    }