### Question:
MongoDbGroupRepository implements GroupRepository { @Override public Group get(String id) { return template.get(id); }  @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 get() { String title = "title"; String id = "1"; Group group = new GroupImpl(); group.setId(id); group.setTitle(title); expect(groupTemplate.get(id)).andReturn(group); replay(groupTemplate); Group fromRepo = repo.get(id); assertThat(fromRepo.getId(), is(equalTo(id))); assertThat(fromRepo.getTitle(), is(equalTo(title))); }