}
@Test
public void addsDirectory() throws ApplicationException {
scannerService.add(set(cd1));
Directory root = getFirstRootDirectory();
browserService.addDirectory(cd1 + separatorChar + "subdir", root.getId());
Set<Directory> subDirs = browserService.getSubDirectories(root.getId());
Assert.assertFalse(subDirs.isEmpty());
Assert.assertEquals(1, subDirs.size());
Assert.assertEquals(cd1 + separatorChar + "subdir",
subDirs.iterator().next().getPath());
}