### Question:
PageableDelegatingJudgmentReferenceRemover implements TagJudgmentReferenceRemover { @Override public void removeReferences(List<Long> judgmentIds) { int pageNr = 0; while (true) { int fromIndex = pageNr * pageSize; int toIndex = pageNr * pageSize + pageSize; if (fromIndex >= judgmentIds.size()) { break; } if (toIndex > judgmentIds.size()) { toIndex = judgmentIds.size(); } delegatedJudgmentReferenceRemover.removeReferences(judgmentIds.subList(fromIndex, toIndex)); pageNr++; } } PageableDelegatingJudgmentReferenceRemover(TagJudgmentReferenceRemover delegatedJudgmentReferenceRemover); @Override void removeReferences(List<Long> judgmentIds); void setPageSize(int pageSize);  }### Answer:
@Test public void removeReference() { List<Long> judgmentIds = Lists.newArrayList(1L, 2L, 3L, 4L, 5L); pageableDelegatingJudgmentReferenceRemover.removeReferences(judgmentIds); verify(delegatedJudgmentReferenceRemover).removeReferences(Lists.newArrayList(1L, 2L)); verify(delegatedJudgmentReferenceRemover).removeReferences(Lists.newArrayList(3L, 4L)); verify(delegatedJudgmentReferenceRemover).removeReferences(Lists.newArrayList(5L)); verifyNoMoreInteractions(delegatedJudgmentReferenceRemover); }