@Test
public void testCleanup() throws Exception {

  workspace.cleanup(-1);
  Assert.assertEquals(0L, workspace.getUsedSpace().get().longValue());
  File file = new File(PathSupport.concat(new String[] { workspaceRoot, "test", "c1", "bar.mov" }));
  FileUtils.write(file, "asdf", StandardCharsets.UTF_8);
  file.deleteOnExit();
  Assert.assertEquals(4L, workspace.getUsedSpace().get().longValue());
  workspace.cleanup(0);
  Assert.assertEquals(0L, workspace.getUsedSpace().get().longValue());
  FileUtils.write(file, "asdf", StandardCharsets.UTF_8);
  Assert.assertEquals(4L, workspace.getUsedSpace().get().longValue());
  workspace.cleanup(100);
  Assert.assertEquals(4L, workspace.getUsedSpace().get().longValue());
  Prelude.sleep(1100L);
  workspace.cleanup(1);
  Assert.assertEquals(0L, workspace.getUsedSpace().get().longValue());
}