@Override
    public String toString() {
        String feedBlockedStr = clusterFeedIsBlocked()
                ? String.format(", feed blocked: '%s'", feedBlock.description)
                : "";
        String distributionConfigStr = (distributionConfig != null)
                ? ", distribution config: %s".formatted(distributionConfig.highLevelDescription())
                : "";
        if (derivedBucketSpaceStates.isEmpty()) {
            return String.format("ClusterStateBundle('%s'%s%s%s)", baselineState,
                    deferredActivation ? " (deferred activation)" : "",
                    feedBlockedStr, distributionConfigStr);
        }
        Map<String, AnnotatedClusterState> orderedStates = new TreeMap<>(derivedBucketSpaceStates);
        return String.format("ClusterStateBundle('%s', %s%s%s%s)", baselineState, orderedStates.entrySet().stream()
                .map(e -> String.format("%s '%s'", e.getKey(), e.getValue()))
                .collect(Collectors.joining(", ")),
                deferredActivation ? " (deferred activation)" : "",
                feedBlockedStr, distributionConfigStr);
    }
@Test
    void toString_includes_all_bucket_space_states() {
        ClusterStateBundle bundle = createTestBundle();
        assertThat(bundle.toString(), equalTo("ClusterStateBundle('distributor:2 storage:2', " +
                "default 'distributor:2 storage:2 .0.s:d', " +
                "global 'distributor:2 storage:2', " +
                "narnia 'distributor:2 .0.s:d storage:2')"));
    }