@Test
public void testPagainationAndOrder() throws Exception {
List<SortField> sortFields = Lists.newArrayList();
sortFields.add(new SortField("name", SortDirection.DESC));
sortFields.add(new SortField("path", SortDirection.ASC));
PagingCriteria baseCriteria = PagingCriteria.createCriteriaWithSort(20, 15, 15, sortFields);
PageMyBatis<Resources> pageMyBatis = resourcesMapper.selectByPage(baseCriteria);
for (Resources pageMyBati : pageMyBatis) {
System.out.println(pageMyBati);