folder.setProperty("String", "Foo");
folder.setProperty("Integer", 1);
folder.setProperty("Boolean", true);
folder.setProperty("Double", 2.2D);
folder.setProperty("Float", 3.3F);
FolderReference folderRef = new FolderReference(DynamicDAO.save(folder).getId());
folder = folderRef.resolve();
assertEquals("Foo", folder.getProperty("String"));
assertEquals(1, folder.getProperty("Integer"));
assertEquals(true, folder.getProperty("Boolean"));
assertEquals(2.2D, folder.getProperty("Double"));
assertEquals(3.3F, folder.getProperty("Float"));
/* Add Properties to a Feed */
IFeed feed = fFactory.createFeed(null, new URI("http://www.myfeed.com"));
feed.setProperty("String", "Foo");
feed.setProperty("Integer", 1);
feed.setProperty("Boolean", true);
feed.setProperty("Double", 2.2D);
feed.setProperty("Float", 3.3F);
FeedReference feedRef = new FeedReference(DynamicDAO.save(feed).getId());
feed = feedRef.resolve();
assertEquals("Foo", feed.getProperty("String"));
assertEquals(1, feed.getProperty("Integer"));
assertEquals(true, feed.getProperty("Boolean"));
assertEquals(2.2D, feed.getProperty("Double"));
assertEquals(3.3F, feed.getProperty("Float"));
/* Add Properties to a BookMark */
IBookMark bookMark = fFactory.createBookMark(null, folderRef.resolve(), new FeedLinkReference(feed.getLink()), "BookMark");
bookMark.setProperty("String", "Foo");
bookMark.setProperty("Integer", 1);
bookMark.setProperty("Boolean", true);
bookMark.setProperty("Double", 2.2D);
bookMark.setProperty("Float", 3.3F);