The following aggregation tests all contain switch statements with branches that will never execute. The tests use a `between(x, y)` switch expression, but there are `case` values that are outside the randomised range. We need to fix these before #88739 can be merged. By "fix", I mean either remove the spurious cases, or if we actually want them, then extend the randomized range.

   * InternalAutoDateHistogramTests
   * InternalAvgTests
   * InternalDerivativeTests
   * InternalGeoCentroidTests
   * InternalWeightedAvgTests
   * SignificantLongTermsTests
   * SignificantStringTermsTests
server/src/test/java/org/elasticsearch/search/aggregations/bucket/histogram/InternalAutoDateHistogramTests.java
deserialized.getBuckets(),
            deserialized.getTargetBuckets(),
            deserialized.getBucketInfo(),
            deserialized.getFormatter(),
            deserialized.getMetadata(),
            instance.getBucketInnerInterval()
        );
        assertEqualInstances(instance, modified);
    }
    public void testReadFromPre830() throws IOException {
        byte[] bytes = Base64.getDecoder()
            .decode(
                "BG5hbWUKAAYBCAFa6AcEAAAAAQAAAAUAAAAKAAAAHgFzBnNlY29uZAEHAVrg1AMEAAAAAQAAAAUAAAAKAAA"
                    + "AHgFtBm1pbnV0ZQEGAVqA3dsBAwAAAAEAAAADAAAADAFoBGhvdXIBBQFagLiZKQIAAAABAAAABwFk"
                    + "A2RheQEEAVqAkPvTCQIAAAABAAAAAwFNBW1vbnRoAQIBWoDYxL11BgAAAAEAAAAFAAAACgAAABQAA"
                    + "AAyAAAAZAF5BHllYXIAAARib29sAQAAAAAAAAAKZAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
            );
        try (StreamInput in = new NamedWriteableAwareStreamInput(new BytesArray(bytes).streamInput(), getNamedWriteableRegistry())) {
            in.setVersion(Version.V_8_2_0);
            InternalAutoDateHistogram deserialized = new InternalAutoDateHistogram(in);
            assertEquals("name", deserialized.getName());
            assertEquals(1, deserialized.getBucketInnerInterval());
            assertEquals(1, deserialized.getBuckets().size());
            InternalAutoDateHistogram.Bucket bucket = deserialized.getBuckets().iterator().next();
            assertEquals(10, bucket.key);
            assertEquals(100, bucket.docCount);
        }
    }
}