}
public void testCreateBookmarkTag() throws Exception{
BookmarkTag bmTag = new BookmarkTag();
bmTag.setBookmark(new Bookmark(1));
bmTag.setTag(new Tag(1));
int id = tagDao.createBookmarkTag(bmTag);
assertTrue((id > 0));
BookmarkTag bmTag2 = tagDao.getBookmarkTag(id);
assertEquals(bmTag.getBookmark().getId(),bmTag2.getBookmark().getId());
assertEquals(bmTag.getTag().getId(),bmTag2.getTag().getId());
BookmarkTag bmFoo = new BookmarkTag();
bmFoo.setBookmark(new Bookmark(1));
bmFoo.setTag(new Tag(100));
bmFoo.setPosition(40);
id = tagDao.createBookmarkTag(bmFoo);
assertTrue((id > 0));
bmTag2 = tagDao.getBookmarkTag(id);