.statusCode(200)
.payload(
payloadFromResourceWithContentType("/payloads/events-page.xml", normalize(EventsDto.MEDIA_TYPE))) //
.build());
EventOptions options = EventOptions.builder().limit(1).has("text").build();
PaginatedCollection<EventDto, EventsDto> result = api.listEvents(options);
assertEquals(result.size(), 2);
assertEquals(result.getTotalSize().intValue(), 4);
assertEquals(result.get(0).getId().intValue(), 109);