RequestParameters parameters = new RequestParameters("firstName", "John");
RootResourceInformation resourceInformation = getResourceInformation(Person.class);
ResponseEntity<Object> response = controller.executeSearch(resourceInformation, getRequest(parameters),
"firstname", new DefaultedPageable(new PageRequest(0, 10), true), null, assembler);
ResourceTester tester = ResourceTester.of(response.getBody());
PagedResources<Object> pagedResources = tester.assertIsPage();
assertThat(pagedResources.getContent().size(), is(1));