request.setParameter("foo_search.username_eq", "zhang");
MethodParameter parameter = new MethodParameter(customNamePrefixSearchableAndPageableAndSort, 0);
NativeWebRequest webRequest = new ServletWebRequest(request);
Searchable searchable = (Searchable) new SearchableMethodArgumentResolver().resolveArgument(parameter, null, webRequest, null);
//内部会自动-1,从0开始
assertEquals(pn - 1, searchable.getPage().getPageNumber());
assertEquals(pageSize, searchable.getPage().getPageSize());
Sort expectedSort = new Sort(Sort.Direction.ASC, "baseInfo.realname").and(new Sort(Sort.Direction.DESC, "id"));
assertEquals(expectedSort, searchable.getSort());
assertContainsSearchFilter(SearchFilterHelper.newCondition("baseInfo.realname", SearchOperator.like, "zhang"), searchable);
assertContainsSearchFilter(SearchFilterHelper.newCondition("username", SearchOperator.eq, "zhang"), searchable);
}