request.setParameter("foo_page.size", String.valueOf(pageSize));
request.setParameter("foo_sort2.id", "desc");
request.setParameter("foo_sort1.baseInfo.realname", "asc");
MethodParameter parameter = new MethodParameter(customNamePrefixPageableAndSort, 0);
NativeWebRequest webRequest = new ServletWebRequest(request);
Pageable pageable = (Pageable) new PageableMethodArgumentResolver().resolveArgument(parameter, null, webRequest, null);
//内部会自动-1,从0开始
assertEquals(pn - 1, pageable.getPageNumber());
assertEquals(pageSize, pageable.getPageSize());