### Question:
JpaCategoryRepository implements CategoryRepository { @Override public List<Category> getLimitedList(int offset, int limit) { TypedQuery<JpaCategory> query = manager.createNamedQuery(JpaCategory.GET_ALL, JpaCategory.class); return CollectionUtils.<Category>toBaseTypedList(getPagedResultList(query, offset, limit)); }  @Override Class<? extends Category> getType(); @Override Category get(String id); @Override Category save(Category item); @Override void delete(Category item); @Override List<Category> getAll(); @Override List<Category> getLimitedList(int offset, int limit); @Override int getCountAll(); @Override int removeFromCreatedOrModifiedFields(String userId);  }### Answer:
@Test public void getLimitedList() { List<Category> list = repository.getLimitedList(1, 2); assertThat(list.size(), is(2)); assertThat(list.get(0).getText(), is("Cat99")); assertThat(list.get(1).getText(), is("News Category")); }