### Question:
JpaAuthorityRepository implements AuthorityRepository { @Override public Authority get(String id) { return manager.find(JpaAuthority.class, Long.parseLong(id)); }  @Override Authority getByAuthority(String authorityName); @Override List<Authority> getAll(); @Override List<Authority> getLimitedList(int offset, int limit); @Override List<Authority> getAllDefault(); @Override int getCountAll(); @Override Class<? extends Authority> getType(); @Override Authority get(String id); @Override Authority save(Authority item); @Override void delete(Authority item);  }### Answer:
@Test public void getById_validId() { final JpaAuthority authority = (JpaAuthority)repository.get(VALID_ID.toString()); assertNotNull(authority); assertEquals(VALID_ID, authority.getEntityId()); }