@ParameterizedTest(name = " - From: Zone {0}, timestamp: {2}, To: Zone:{1}, expected Timestamp {3}")
  @MethodSource("julianLeapYearEdgeCases")
  void testWriteHive2ReadHive4UsingLegacyConversionWithJulianLeapYearsEdgeCase(String fromZoneId, String toZoneId,
      String timestampString, String expected) {
    TimeZone original = TimeZone.getDefault();
    try {
      TimeZone.setDefault(TimeZone.getTimeZone(fromZoneId));
      NanoTime nt = writeHive2(timestampString);
      Timestamp ts = readHive4(nt, toZoneId, true);
      assertEquals(expected, ts.toString());
    } finally {
      TimeZone.setDefault(original);
    }
  }
Tests that timestamps written using Hive2 APIs on julian leap years are read correctly by Hive4 APIs when legacy
conversion is on.
ql/src/test/org/apache/hadoop/hive/ql/io/parquet/serde/TestParquetTimestampsHive2Compatibility.java