PagingResult { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; PagingResult<?> result1 = (PagingResult<?>) o; return getResult().equals(result1.getResult()) && Objects.equals(getPaging(), result1.getPaging()) && Objects.equals(getPagingLinkObjects(), result1.getPagingLinkObjects()); } PagingResult(Collection<? extends T> result, Paging paging, PagingLinkObjects pagingLinkObjects); List<T> getResult(); Paging getPaging(); PagingLinkObjects getPagingLinkObjects(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void testEquals() { EqualsVerifier.forClass(PagingResult.class) .withNonnullFields("result") .verify(); }