### Question:
TagServiceImpl implements TagService { @Override @Transactional(readOnly = false) public Tag save(Tag tag) { return tagDao.save(tag); }  @Override Page<Tag> getAllTag(); @Override Page<Tag> getTag(int skip, int count, Order... order); @Override Page<Tag> getTag(Pageable page); @Override @Transactional(readOnly = false) Tag save(Tag tag); @Override Tag read(Long tagId); @Override @Transactional(readOnly = false) void delete(Long tagId); @Override long getNrOfTags(); @Override List<Post> getPostingSelectOptions();  }### Answer:
@Test public void testSave() { final Tag aTag = new Tag(); when(tagDao.save(any(Tag.class))).thenReturn(aTag); final Tag testTag = tagService.save(new Tag()); assertThat(testTag).isEqualTo(aTag); verify(tagDao, times(1)).save(any(Tag.class)); }