selector.setSearchParameters(new SearchParameter[] {relatedToKeywordSearchParameter});
selector.setIdeaType(IdeaType.KEYWORD);
selector.setRequestType(RequestType.IDEAS);
Paging paging = new Paging(index, 100);
selector.setPaging(paging);
TargetingIdeaPage page = service.get(selector);
ArrayList<TargetingIdea> result = new ArrayList<TargetingIdea>();
while (paging.getStartIndex() + 100 <= page.getTotalNumEntries()) {
assertNotNull(page);
result.addAll(Arrays.asList(page.getEntries()));
paging.setStartIndex(paging.getStartIndex() + 100);
selector.setPaging(paging);
page = service.get(selector);
}
assertEquals(page.getTotalNumEntries(), new Integer(result.size()));
}