@Override
    public Space get() throws BackgroundException {
        final Path home = new DefaultHomeFinderService(session).find();
        try {
            final FileStore store = Files.getFileStore(session.toPath(home));
            return new Space(store.getTotalSpace() - store.getUnallocatedSpace(), store.getUnallocatedSpace());
        }
        catch(IOException e) {
            throw new LocalExceptionMappingService().map("Failure to read attributes of {0}", e, home);
        }
    }
@Test
    public void get() throws Exception {
        final LocalSession session = new LocalSession(new Host(new LocalProtocol(), new LocalProtocol().getDefaultHostname()));
        session.open(new DisabledProxyFinder(), new DisabledHostKeyCallback(), new DisabledLoginCallback(), new DisabledCancelCallback());
        session.login(new DisabledLoginCallback(), new DisabledCancelCallback());
        final Quota.Space quota = new LocalQuotaFeature(session).get();
        assertNotNull(quota.used);
        assertNotNull(quota.available);
        assertNotEquals(Quota.unknown, quota);
    }