@Test
public void findJobsWithFieldFiltering() {

    Pair<List<Job>, List<Job>> cellSnapshots = generateTestJobs();
    List<Job> allJobs = walkAllPages(
            10,
            request -> service.findJobs(request, UNDEFINED_CALL_METADATA),
            page -> JobQuery.newBuilder()
                    .setPage(page)
                    .addFields("jobDescriptor.owner")
                    .build(),
            JobQueryResult::getPagination,
            JobQueryResult::getItemsList
    );
    assertThat(allJobs).hasSize(cellSnapshots.getLeft().size() + cellSnapshots.getRight().size());
    for (Job job : allJobs) {
        assertThat(job.getId()).isNotEmpty();
        assertThat(job.getJobDescriptor().getOwner().getTeamEmail()).isNotEmpty();
        assertThat(job.getStatus().getReasonMessage()).isEmpty();
        assertThat(job.getStatusHistoryList()).isEmpty();
    }
}