public void insertOptimizingProcess(
        ServerTableIdentifier identifier,
        long processId,
        long targetSnapshotId,
        long targetChangeSnapshotId,
        ProcessStatus status,
        OptimizingType type,
        long planTime,
        MetricsSummary summary,
        Map<String, Long> fromSequence,
        Map<String, Long> toSequence) {
      doAs(
          OptimizingMapper.class,
          mapper ->
              mapper.insertOptimizingProcess(
                  identifier,
                  processId,
                  targetSnapshotId,
                  targetChangeSnapshotId,
                  status,
                  type,
                  planTime,
                  summary,
                  fromSequence,
                  toSequence));
    }
Test descriptor class, add insert table/optimizing process methods for test.
amoro-ams/src/test/java/org/apache/amoro/server/dashboard/TestIcebergServerTableDescriptor.java