### Question:
ProfileUpdatingServiceImpl implements ProfileUpdatingService { @Override @SneakyThrows public void updatePublicProfile(UserIDAuth forUser, UserPublicProfile profile) { validateKeystoreAccess(forUser); log.debug("Update public profile {}", profile); storeService.registerPublic(forUser.getUserID(), profile); } @Inject  ProfileUpdatingServiceImpl(ProfileStoreService storeService, PrivateKeyService privateKeyService,
                                      StorageKeyStoreOperations storageKeyStoreOper,
                                      DocumentKeyStoreOperations keyStoreOper); @Override @SneakyThrows void updatePublicProfile(UserIDAuth forUser, UserPublicProfile profile); @Override void updatePrivateProfile(UserIDAuth forUser, UserPrivateProfile profile); @Override void updateReadKeyPassword(UserIDAuth forUser, ReadKeyPassword newPassword);  }### Answer:
@Test void updatePublicProfile() { tested.updatePublicProfile(user, publicProfile); verify(privateKeyService).validateUserHasAccessOrThrow(user); verify(storeService).registerPublic(user.getUserID(), publicProfile); }