MockHttpRequest req = MockHttpRequest.create("GET",
"http://localhost/candlepin/status?per_page=10&page=4");
interceptor.preProcess(req, rmethod);
PageRequest p = ResteasyProviderFactory.getContextData(PageRequest.class);
assertEquals(Integer.valueOf(10), p.getPerPage());
assertEquals(Integer.valueOf(4), p.getPage());
assertEquals(PageRequest.DEFAULT_ORDER, p.getOrder());
assertNull(p.getSortBy());
}