### Question:
JpaCategoryRepository implements CategoryRepository { @Override public void delete(Category item) { manager.remove(item instanceof JpaCategory ? item : get(item.getId())); }  @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 @Rollback(true) public void delete() { Category entity = repository.get(VALID_ENTITY_ID.toString()); assertThat(entity, is(notNullValue())); repository.delete(entity); assertThat(repository.get(VALID_ENTITY_ID.toString()), is(nullValue())); }