public void testFindUserTagMinFreq() throws Exception{
User user = new User(1);
List<UserTag> tags = tagDao.findUserTag(user,0,TagDao.SORT_FREQ);
assertEquals(3,tags.size());
UserTag ut1 = tags.get(0);
UserTag ut2 = tags.get(1);
UserTag ut3 = tags.get(2);
assertTrue(ut1.getCount()>ut2.getCount());
tags = tagDao.findUserTag(user,0,TagDao.SORT_ALPH);
assertEquals(3,tags.size());
ut1 = tags.get(0);
ut2 = tags.get(1);
ut3 = tags.get(2);
assertEquals("cnn",ut1.getTag().getLabel());
assertEquals("iehf", ut2.getTag().getLabel());
assertEquals("news",ut3.getTag().getLabel());
tags = tagDao.findUserTag(user,1);
assertEquals(1,tags.size());
tags = tagDao.findUserTag(user,20);