### Question:
JpaRegionRepository implements RegionRepository { @Override public int getCountAll() { Query query = manager.createNamedQuery(JpaRegion.REGION_COUNT_ALL); Number countResult = (Number) query.getSingleResult(); return countResult.intValue(); }  @Override Class<? extends Region> getType(); @Override Region get(String id); @Override Region save(Region item); @Override void delete(Region item); @Override List<Region> getAll(); @Override List<Region> getLimitedList(int offset, int pageSize); @Override int getCountAll();  }### Answer:
@Test public void getCount(){ int count = repository.getCountAll(); assertThat(count, is(notNullValue())); assertThat(count, is(equalTo(34))); }