### Question:
MongoDbGroupRepository implements GroupRepository { @Override public Group save(Group item) { return template.save(item); }  @Override Group findByTitle(String title); @Override Class<? extends Group> getType(); @Override Group get(String id); @Override List<Group> getAll(); @Override List<Group> getLimitedList(int offset, int limit); @Override int getCountAll(); @Override Group save(Group item); @Override void delete(Group item); void setTemplate(MongoGroupOperations template);  }### Answer:
@Test public void save(){ String title = "TITLE"; Group group = new GroupImpl(); group.setId("1"); group.setTitle(title); expect(groupTemplate.save(group)).andReturn(group); replay(groupTemplate); Group returned = repo.save(group); verify(groupTemplate); assertThat(returned, is(sameInstance(group))); }