@Override
    public Path find() throws BackgroundException {
        final String directory;
        try {
            directory = session.getClient().printWorkingDirectory();
            if(null == directory) {
                throw new FTPException(session.getClient().getReplyCode(), session.getClient().getReplyString());
            }
            return new Path(PathNormalizer.normalize(directory), directory.equals(String.valueOf(Path.DELIMITER)) ? EnumSet.of(Path.Type.volume, Path.Type.directory) : EnumSet.of(Path.Type.directory));
        }
        catch(IOException e) {
            throw new FTPExceptionMappingService().map(e);
        }
    }
@Test
    public void testDefaultPath() throws Exception {
        assertEquals("/", new FTPWorkdirService(session).find().getAbsolute());
    }