public void testUpdateBookmark2() throws Exception{
Bookmark bm = manager.getBookmark(300);
bm.setTags("news foobar abdc");
assertTrue(manager.updateBookmark(bm));
UserTag ut = tagDao.findUserTag(bm.getUser(),new Tag(5)).get(0);
assertEquals(1,ut.getCount());
Tag foobar = tagDao.findTag("foobar").get(0);
assertEquals(1,foobar.getCount());
Tag abdc = tagDao.findTag("abdc").get(0);
assertEquals(1,abdc.getCount());
Tag cnn = tagDao.findTag("cnn").get(0);
assertEquals(0,cnn.getCount());
UserTag userCnn = tagDao.findUserTag(bm.getUser(),cnn).get(0);
assertEquals(0,userCnn.getCount());
UserTag userFoobar = tagDao.findUserTag(bm.getUser(),foobar).get(0);
assertEquals(1,userFoobar.getCount());
bm.setTags("");
assertTrue(manager.updateBookmark(bm));
ut = tagDao.findUserTag(bm.getUser(),new Tag(5)).get(0);
assertEquals(0,ut.getCount());
}