@Override
    public List<ServerLocation> findServersForQueue(Set excludedServers, int numServers,
        ClientProxyMembershipID proxyId, boolean findDurableQueue) {
      numServers = Math.min(numServers, factory.nextConnections.size());
      List<ServerLocation> locations = new ArrayList<>(numServers);
      for (int i = 0; i < numServers; i++) {
        locations.add(findServer(null));
      }
      return locations;
    }
A fake factory which returns a list of connections. Fake connections are created by calling
addConnection or add error. The factory maintains a queue of connections which will be handed
out when the queue manager calls createClientToServerConnection. If an error was added, the
factory will return null instead.
geode-core/src/integrationTest/java/org/apache/geode/cache/client/internal/QueueManagerIntegrationTest.java