### Question:
JpaTagRepository implements TagRepository { @Override public Tag get(String id) { return manager.find(JpaTag.class, Long.parseLong(id)); }  @Override List<Tag> getAll(); @Override List<Tag> getLimitedList(int offset, int limit); @Override Class<? extends Tag> getType(); @Override int getCountAll(); @Override JpaTag getByKeyword(String keyword); @Override Tag get(String id); @Override Tag save(Tag item); @Override void delete(Tag item);  }### Answer:
@Test public void getById_validId() { final Tag tag = repository.get(VALID_ID.toString()); assertNotNull(tag); assertEquals(VALID_ID, ((JpaTag)tag).getEntityId()); assertEquals(tag.getKeyword(), "news"); }