@Test
public void testDefensiveCopyOfResultList() {

    List<Object> data = new ArrayList<>();
    data.add("entry1");
    PagingResult<Object> result = new PagingResult<>(data, null, null);
    data.add("entry2");
    assertThat(result.getResult()).containsOnly("entry1");
}