@Override
    public Path mkdir(final Path folder, final TransferStatus status) throws BackgroundException {
        try {
            session.getClient().putDirectory(folder.getAbsolute());
            return folder;
        }
        catch(MantaException e) {
            throw new MantaExceptionMappingService().map("Cannot create folder {0}", e, folder);
        }
        catch(MantaClientHttpResponseException e) {
            throw new MantaHttpExceptionMappingService().map("Cannot create folder {0}", e, folder);
        }
        catch(IOException e) {
            throw new DefaultIOExceptionMappingService().map("Cannot create folder {0}", e, folder);
        }
    }
@Test
    public void testMkdir() throws Exception {
        final Path target = new MantaDirectoryFeature(session).mkdir(randomDirectory(), null);
        final PathAttributes found = new MantaAttributesFinderFeature(session).find(target);
        assertNotEquals(Permission.EMPTY, found.getPermission());
        new MantaDeleteFeature(session).delete(Collections.singletonList(target), new DisabledLoginCallback(), new Delete.DisabledCallback());
    }