public static Short max(Short a, Short b) {
        return a >= b ? a : b;
    }
@Test
    void testMax() {
        assertThat(summarize(-1000, 0, 1, 50, 999, 1001).getMax().shortValue())
                .isEqualTo((short) 1001);
        assertThat(summarize((int) Short.MIN_VALUE, -1000, 0).getMax().shortValue()).isZero();
        assertThat(summarize(1, 8, 7, 6, 9, 10, 2, 3, 5, 0, 11, -2, 3).getMax().shortValue())
                .isEqualTo((short) 11);
        assertThat(
                        summarize(1, 8, 7, 6, 9, null, 10, 2, 3, 5, null, 0, 11, -2, 3)
                                .getMax()
                                .shortValue())
                .isEqualTo((short) 11);
        assertThat(summarize().getMax()).isNull();
    }