Set<Account> accountsToUpdate = Collections.singleton(newAccount); updateAccountsAndAssertAccountExistence(accountsToUpdate, 1 + NUM_REF_ACCOUNT, true); assertAccountUpdateConsumers(accountsToUpdate, numOfConsumers, updatedAccountsReceivedByConsumers); assertAccountUpdateConsumers(accountsToUpdate, numOfConsumers, updatedAccountsReceivedByConsumers); accountsToUpdate = new HashSet<>(Collections.singleton(updatedAccount)); updateAccountsAndAssertAccountExistence(accountsToUpdate, 1 + NUM_REF_ACCOUNT, true); assertAccountUpdateConsumers(Collections.emptySet(), 0, updatedAccountsReceivedByConsumers);