package com.yahoo.vespa.hosted.controller.api.integration.aws;

import com.yahoo.config.provision.CloudAccount;

import java.util.Set;
import java.util.TreeSet;

/**
 * @author jonmv
 */
public class MockEnclaveAccessService implements EnclaveAccessService {

    private volatile Set<CloudAccount> currentAccounts;

    public Set<CloudAccount> currentAccounts() { return currentAccounts; }

    @Override
    public void allowAccessFor(Set<CloudAccount> accounts) {
        currentAccounts = new TreeSet<>(accounts);
    }

}

@@ -307,16 +307,34 @@
 Accounts
+ = new TreeSet%3C%3E()
 ;%0A%0A    p

Fix test even more :'(