### Question:
JpaPageRepository implements PageRepository { @Override public List<Page> getLimitedList(int offset, int limit) { TypedQuery<JpaPage> query = manager.createNamedQuery(JpaPage.GET_ALL, JpaPage.class); return expandProperties(CollectionUtils.<Page>toBaseTypedList(getPagedResultList(query, offset, limit))); }  @Override Class<? extends Page> getType(); @Override Page get(String id); @Override Page save(Page item); @Override void delete(Page item); @Override List<Page> getAllPagesForUserType(String userId, String pageType); @Override List<Page> getPagesForContextType(String contextId, String pageType); @Override int deletePages(String userId, String pageType); @Override boolean hasPersonPage(String userId); @Override boolean hasPage(String contextId, String pageType); @Override List<PageUser> getPagesForUser(String userId, String pageType); @Override PageUser getSingleRecord(String userId, String pageId); @Override Page createPageForUser(User user, PageTemplate pt); @Override List<Page> getAll(); @Override List<Page> getLimitedList(int offset, int limit); @Override int getCountAll();  }### Answer:
@Test public void getLimitedList(){ List<Page> pages = repository.getLimitedList(2, 5); assertThat(pages.size(), is(5)); assertThat(pages.get(0).getId(), is("3")); assertThat(pages.get(1).getId(), is("4")); assertThat(pages.get(2).getId(), is("5")); assertThat(pages.get(3).getId(), is("6")); assertThat(pages.get(4).getId(), is("7")); }