    @Test
    public void testIntegerCalculate() throws Exception {

        MinMax.Pair p1 = new MinMax<>(ARRAY_INT).calculate();
        assertEquals(new MinMax<>(null).new Pair(-5, 123), p1);

        MinMaxStatic.Pair p2 = MinMaxStatic.calculate(ARRAY_INT);
        assertEquals(new MinMaxStatic.Pair<>(-5, 123), p2);
    }