### Question:
AuthorityService implements IAuthorityService { @Override public IAuthorityEntry save(IAuthorityEntry entry) { return (IAuthorityEntry) entryRepository.save((AuthorityEntry) entry); }  @Override void register(AuthorityImporter importer); @Override IAuthorityEntry importAuthority(String uri); @Override IAuthorityEntry find(String id); @Override List<IAuthorityEntry> findByUri(IUser user, String uri); @Override Set<IAuthorityEntry> findByUriInDataset(String uri, String citationGroupId); @Override boolean deleteAuthority(String id); @Override List<IAuthorityEntry> getAll(IUser user); @Override IAuthorityEntry create(IAuthorityEntry entry, IUser user); @Override IAuthorityEntry save(IAuthorityEntry entry);  }### Answer:
@Test public void test_save() { String id = "id"; String name = "name"; String uri = "uri"; AuthorityEntry entry = new AuthorityEntry(); entry.setId(id); entry.setName(name); entry.setUri(uri); Mockito.when(entryRepository.save(entry)).thenReturn(entry); IAuthorityEntry actualEntry = managerToTest.save(entry); Mockito.verify(entryRepository).save(entry); Assert.assertEquals(entry.getId(), actualEntry.getId()); Assert.assertEquals(entry.getName(), actualEntry.getName()); Assert.assertEquals(entry.getUri(), actualEntry.getUri()); }