@Test
  public void testDynamicPage() {
    UserSearch search = new UserSearch();
    search.setFirstName("first_name_page");
    search.setLastName("last_name_page");
    search.setOrderBy("firstName");
    search.setSequance("desc");
    search.setLow(0);
    search.setHigh(10);

    List<User> list = userMapper.page("dynamicFind", search);
    assertEquals(3, list.size());
  }
  @Test
  public void testPage() {
    User search = new User();
    search.setFirstName("first_name_page");
    search.setLastName("last_name_page");

    Example example = Example.create(search);
    DetachedCriteria dc = DetachedCriteria.forClass(User.class).add(example);
    Page page = new Page();
    OrderBy orderBy = new OrderBy();
    orderBy.setOrderBy("firstName");
    orderBy.setSequance("asc");

    List<User> listUser = userMapper.page(dc, page, orderBy);
    assertEquals(3, listUser.size());
  }