public static Enum<?> commonToCalcite(Enum<?> commonSymbol) {
        checkCommonSymbol(commonSymbol);
        Enum<?> calciteSymbol = commonToCalcite.get(commonSymbol);
        if (calciteSymbol == null) {
            calciteSymbol = internalCommonToCalcite.get(commonSymbol);
            if (calciteSymbol == null) {
                throw new UnsupportedOperationException(
                        String.format("Cannot map '%s' to an internal symbol.", commonSymbol));
            }
        }
        return calciteSymbol;
    }
@Test
    void testCommonToCalcite() {
        // public symbol
        assertThat(commonToCalcite(TimeIntervalUnit.QUARTER)).isEqualTo(TimeUnitRange.QUARTER);
        assertThat(calciteToCommon(TimeUnitRange.QUARTER, false))
                .isEqualTo(TimeIntervalUnit.QUARTER);

        // internal symbol
        assertThat(commonToCalcite(DateTimeUtils.TimeUnitRange.QUARTER))
                .isEqualTo(TimeUnitRange.QUARTER);
        assertThat(calciteToCommon(TimeUnitRange.QUARTER, true))
                .isEqualTo(DateTimeUtils.TimeUnitRange.QUARTER);
    }