### Question:
ProjectContributorsListServiceImpl implements ContributorsListService { @Override public void saveContributors(final List<Contributor> contributors, final Runnable successCallback, final ErrorCallback<Message> errorCallback) { repositoryService.call((Repository repository) -> { repositoryService.call((Void) -> successCallback.run(), errorCallback).updateContributors(repository, contributors); }).getRepositoryFromSpace(libraryPlaces.getActiveSpace().getSpace(), libraryPlaces.getActiveWorkspace().getRepository().getAlias()); } @Inject  ProjectContributorsListServiceImpl(final LibraryPlaces libraryPlaces,
                                              final Caller<RepositoryService> repositoryService,
                                              final SpaceContributorsListServiceImpl spaceContributorsListService,
                                              final SessionInfo sessionInfo,
                                              final ProjectController projectController,
                                              final ContributorsSecurityUtils contributorsSecurityUtils,
                                              final Promises promises); @Override void getContributors(Consumer<List<Contributor>> contributorsConsumer); @Override void saveContributors(final List<Contributor> contributors,
                                 final Runnable successCallback,
                                 final ErrorCallback<Message> errorCallback); @Override Promise<Boolean> canEditContributors(final List<Contributor> contributors,
                                                final ContributorType type); @Override void getValidUsernames(Consumer<List<String>> validUsernamesConsumer); @Override void onExternalChange(final Consumer<Collection<Contributor>> contributorsConsumer); @Override boolean requireValidUsername(); @Override String getInvalidNameMessageConstant(); void onRepositoryContributorsUpdatedEvent(@Observes final RepositoryContributorsUpdatedEvent repositoryContributorsUpdatedEvent);  }### Answer:
@Test public void saveContributorsTest() { final Repository repository = mock(Repository.class); doReturn(repository).when(repositoryService).getRepositoryFromSpace(any(), any()); final List<Contributor> contributors = new ArrayList<>(); contributors.add(new Contributor("owner", ContributorType.OWNER)); contributors.add(new Contributor("contributor", ContributorType.CONTRIBUTOR)); contributors.add(new Contributor("admin", ContributorType.ADMIN)); service.saveContributors(contributors, () -> {}, null); verify(repositoryService).updateContributors(repository, contributors); }