BaseEntityMemoryStore implements Store<T, UUID> { public Integer countAll() { return entities.size(); }  T create(@Valid T entity); void update(@Valid T entity); void delete(@Valid T entity); Integer countAll(); List<T> findAll(Integer number, Integer offset); List<T> findByIds(final List<UUID> ids); T findById(UUID id);  }
@Test public void testCountAll() throws Exception { for (int i = 0; i < 15; i++) { store.create(new MyEntity()); } Assert.assertEquals(new Integer(15), store.countAll()); }