ClusterStateBundle { public boolean deferredActivation() { return this.deferredActivation; } private  ClusterStateBundle(AnnotatedClusterState baselineState, Map<String, AnnotatedClusterState> derivedBucketSpaceStates); private  ClusterStateBundle(AnnotatedClusterState baselineState, Map<String,
                               AnnotatedClusterState> derivedBucketSpaceStates,
                               boolean deferredActivation); static Builder builder(AnnotatedClusterState baselineState); static ClusterStateBundle of(AnnotatedClusterState baselineState, Map<String, AnnotatedClusterState> derivedBucketSpaceStates); static ClusterStateBundle of(AnnotatedClusterState baselineState,
                                        Map<String, AnnotatedClusterState> derivedBucketSpaceStates,
                                        boolean deferredActivation); static ClusterStateBundle ofBaselineOnly(AnnotatedClusterState baselineState, boolean deferredActivation); static ClusterStateBundle ofBaselineOnly(AnnotatedClusterState baselineState); static ClusterStateBundle empty(); AnnotatedClusterState getBaselineAnnotatedState(); ClusterState getBaselineClusterState(); Map<String, AnnotatedClusterState> getDerivedBucketSpaceStates(); boolean deferredActivation(); ClusterStateBundle cloneWithMapper(Function<ClusterState, ClusterState> mapper); ClusterStateBundle clonedWithVersionSet(int version); boolean similarTo(ClusterStateBundle other); int getVersion(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void deferred_activation_is_disabled_by_default() { ClusterStateBundle bundle = createTestBundle(); assertFalse(bundle.deferredActivation()); }
@Test public void can_build_bundle_with_deferred_activation_enabled() { var bundle = createTestBundleBuilder(false).deferredActivation(true).deriveAndBuild(); assertTrue(bundle.deferredActivation()); }
@Test public void can_build_bundle_with_deferred_activation_disabled() { var bundle = createTestBundleBuilder(false).deferredActivation(false).deriveAndBuild(); assertFalse(bundle.deferredActivation()); }