### Question:
JpaCategoryRepository implements CategoryRepository { @Override public List<Category> getAll() { List<JpaCategory> resultList = manager.createNamedQuery(JpaCategory.GET_ALL, JpaCategory.class).getResultList(); return CollectionUtils.<Category>toBaseTypedList(resultList); }  @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 getAll() { List<Category> list = repository.getAll(); assertThat(list.size(), is(6)); String lastText = ""; for (Category wc : list) { String currentText = wc.getText(); assertThat(currentText.compareTo(lastText) > 0, is(true)); lastText = currentText; } }