ProfileUpdatingServiceImpl implements ProfileUpdatingService { @Override public void updateReadKeyPassword(UserIDAuth forUser, ReadKeyPassword newPassword) { log.debug("Update read key for profile {}", forUser.getUserID()); keyStoreOper.updateReadKeyPassword(forUser, newPassword); storageKeyStoreOper.updateReadKeyPassword(forUser, newPassword); } @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);  }
@Test void updateReadKeyPassword() { tested.updateReadKeyPassword(user, readKeyPassword); verify(privateKeyService, never()).validateUserHasAccessOrThrow(user); verify(keyStoreOper).updateReadKeyPassword(user, readKeyPassword); }