### Question:
EntryServiceImpl implements EntryService { @Override @Transactional @CacheEvict(value = {"recentPost", "entry"}, allEntries = true) public void delete(Integer entryId) { Entry entry = findOne(entryId); houseKeepTag(entry.getTags()); entryRepository.delete(entry); }  @Override Entry findOne(Integer entryId); @Override @Cacheable("entry") Entry findOnePublished(Integer entryId); @Override Page<Entry> findPage(Pageable pageable); @Override @Cacheable("entry") Page<Entry> findPagePublished(Pageable pageable); @Override @Cacheable("recentPost") List<Entry> findAllPublishedUpdatedRecently(); @Override Page<Entry> findPagePublishedByCategoryNameAndCategoryOrder(
            String categoryName, Integer categoryOrder, Pageable pageable); @Override Page<Entry> findPagePublishedByCreatedBy(String createdBy, Pageable pageable); @Override Page<Entry> findPagePublishedByTagName(String tagName, Pageable pageable); @Override Page<Entry> findPageByTagName(String tagName, Pageable pageable); @Override Page<Entry> searchPageByKeyword(String keyword, Pageable pageable); @Override Page<Entry> searchPagePublishedByKeyword(String keyword, Pageable pageable); @Override @Transactional @CacheEvict(value = {"recentPost", "entry"}, allEntries = true) Entry create(Entry entry, List<Category> category); @Override @Transactional @CacheEvict(value = {"recentPost", "entry"}, allEntries = true) Entry update(Integer entryId, Entry updatedEntry,
                        boolean updateLastModifiedDate, boolean saveInHistory); @Override @Transactional @CacheEvict(value = {"recentPost", "entry"}, allEntries = true) void delete(Integer entryId);  }### Answer:
@Test @Rollback(false) @Transactional public void testDelete() { Entry entry = entryService.findOne(EntryServiceImplTest.entryId); for (EntryHistory h : entry.getHistories()) { System.out.println(h); } entryService.delete(EntryServiceImplTest.entryId); assertThat(entryRepository.findOne(EntryServiceImplTest.entryId), is(nullValue())); }