@Override
    public String getKey(final Path file) {
        final String key = super.getKey(file);
        if(!file.isRoot() && !this.isContainer(file) && file.isDirectory()) {
            return key.concat(String.valueOf(Path.DELIMITER));
        }
        return key;
    }
@Test
    public void testGetKey() {
        assertNull(new DirectoryDelimiterPathContainerService().getKey(new Path("/", EnumSet.of(Path.Type.directory))));
        assertNull(new DirectoryDelimiterPathContainerService().getKey(new Path("/bucket", EnumSet.of(Path.Type.directory))));
        assertEquals("bucket",
                new DirectoryDelimiterPathContainerService().getKey(new Path("/bucket", EnumSet.of(Path.Type.file))));
    }