### Question:
JpaTagRepository implements TagRepository { @Override public int getCountAll() { Query query = manager.createNamedQuery(JpaTag.COUNT_ALL); Number countResult = (Number) query.getSingleResult(); return countResult.intValue(); }  @Override List<Tag> getAll(); @Override List<Tag> getLimitedList(int offset, int limit); @Override Class<? extends Tag> getType(); @Override int getCountAll(); @Override JpaTag getByKeyword(String keyword); @Override Tag get(String id); @Override Tag save(Tag item); @Override void delete(Tag item);  }### Answer:
@Test public void countAll() { int count = repository.getCountAll(); assertTrue("Found at least 1 tag", count == 3); }