### Question:
JpaPageTemplateRepository implements PageTemplateRepository { @Override public List<PageTemplate> getLimitedList(int offset, int limit) { TypedQuery<JpaPageTemplate> query = manager.createNamedQuery(JpaPageTemplate.PAGE_TEMPLATE_GET_ALL, JpaPageTemplate.class); return CollectionUtils.<PageTemplate>toBaseTypedList(expandProperties(getPagedResultList(query, offset, limit))); }  @Override List<PageTemplate> getAll(); @Override List<PageTemplate> getLimitedList(int offset, int limit); @Override int getCountAll(); @Override List<PageTemplate> getAll(String pageType); @Override JpaPageTemplate getDefaultPage(String pageType); @Override Class<? extends PageTemplate> getType(); @Override PageTemplate get(String id); @Override PageTemplate save(PageTemplate template); @Override void delete(PageTemplate item);  }### Answer:
@Test public void getAll_limited(){ List<PageTemplate> pageTemplateList = pageTemplateRepository.getLimitedList(0, 1); assertThat(pageTemplateList.size(), is(equalTo(1))); }