### Question:
MongoDbTagRepository implements TagRepository { @Override public Tag get(String id) { return template.get(id); }  @Override List<Tag> getAll(); @Override List<Tag> getLimitedList(int offset, int pageSize); @Override int getCountAll(); @Override Tag getByKeyword(String keyword); @Override Class<? extends Tag> getType(); @Override Tag get(String id); @Override Tag save(Tag item); @Override void delete(Tag item); void setWidgetTemplate(MongoTagOperations tagTemplate);  }### Answer:
@Test public void get() { String keyword = "key"; String id = "1"; Tag t = new TagImpl(id, keyword); expect(tagTemplate.get(id)).andReturn(t); replay(tagTemplate); Tag fromRepo = repo.get(id); assertThat(fromRepo.getId(), is(equalTo(id))); assertThat(fromRepo.getKeyword(), is(equalTo(keyword))); }