private Optional<Allocation> allocation(Optional<String> tenant, Flavor flavor) {
        if (tenant.isPresent()) {
            Allocation allocation = new Allocation(app(tenant.get()),
                                                   ClusterMembership.from("container/id1/3", new Version(), Optional.empty()),
                                                   flavor.resources(),
                                                   Generation.initial(),
                                                   false);
            return Optional.of(allocation);
        }
        return Optional.empty();
    }
Graphically run allocation procedure to ease manual comprehension.

Extremely useful when trying to understand test cases and build corner cases.
node-repository/src/test/java/com/yahoo/vespa/hosted/provision/provisioning/AllocationSimulator.java