### Question:
JpaCategoryRepository implements CategoryRepository { @Override public int getCountAll() { Query query = manager.createNamedQuery(JpaCategory.GET_COUNT); Number countResult = (Number) query.getSingleResult(); return countResult.intValue(); }  @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 getCountAll(){ int count = repository.getCountAll(); assertThat(count, is(6)); }