public void testPageForUserBySender() throws Exception{
DaoResult<ForUser> result = fuDao.pageForUser(new User(2), new User(2), 0, 10);
assertEquals(1,result.getSize());
ForUser forUser = result.getResult().get(0);
assertEquals(300,forUser.getBookmark().getId());
assertEquals("jsmith",forUser.getBookmark().getUser().getUsername());
assertEquals("jsmith",forUser.getForUser().getUsername());
result = fuDao.pageForUser(new User(2), new User(1), 0, 10);
assertEquals(2, result.getSize());
result = fuDao.pageForUser(new User(2), new User(1), 1, 10);
assertEquals(2, result.getSize());
assertEquals(1, result.getResult().size());
forUser = result.getResult().get(0);
assertEquals("jsmith",forUser.getForUser().getUsername());
assertEquals("hchen1",forUser.getBookmark().getUser().getUsername());
}