@Override
    public AttributedList<Path> list(final Path directory, final ListProgressListener listener) throws BackgroundException {
        return this.list(directory, listener, new HostPreferences(session.getHost()).getInteger("box.listing.chunksize"));
    }
@Test
    public void testListRoot() throws Exception {
        final BoxFileidProvider fileid = new BoxFileidProvider(session);
        final Path directory = new Path("/", EnumSet.of(AbstractPath.Type.directory, Path.Type.volume));
        final AttributedList<Path> list = new BoxListService(session, fileid).list(
                directory, new DisabledListProgressListener());
        assertFalse(list.isEmpty());
        for(Path f : list) {
            assertEquals(f.attributes(), new BoxAttributesFinderFeature(session, fileid).find(f, new DisabledListProgressListener()));
            assertSame(directory, f.getParent());
            assertNotEquals(TransferStatus.UNKNOWN_LENGTH, f.attributes().getSize());
            assertNotNull(f.attributes().getFileId());
            if(f.isFile()) {
                assertNotEquals(Checksum.NONE, f.attributes().getChecksum());
            }
            assertTrue(f.attributes().getModificationDate() > 0);
            assertTrue(f.attributes().getCreationDate() > 0);
        }
    }