assertEquals(1, dirs.length);
assertEquals("bucket1", dirs[0].getName());
// store a file into a subdirectory
InputStream is = getClass().getResourceAsStream("/bookmarks.opml");
fmgr.saveFile(testWeblog, "bucket1/bookmarks.opml", "text/plain", 1545, is);
// make sure file was stored successfully
assertEquals("bucket1/bookmarks.opml",
fmgr.getFile(testWeblog, "bucket1/bookmarks.opml").getPath());
assertEquals(1, fmgr.getFiles(testWeblog, "bucket1").length);