Paging paging = Paging.of(pagingRequest, viewResultEntries);
when(_underlying.getBatchValues(_riskRunId, pagingRequest)).thenReturn(Pair.of(viewResultEntries, paging));
Response response = _resource.getBatchValues(pagingRequest);
FudgeResponse entity = (FudgeResponse) response.getEntity();
Pair<List<ViewResultEntry>, Paging> result = (Pair<List<ViewResultEntry>, Paging>) entity.getValue();
assertEquals(Status.OK.getStatusCode(), response.getStatus());
assertSame(result.getFirst().size(), 1);
assertSame(result.getFirst().get(0), mockViewResultEntry);
assertSame(result.getSecond(), paging);