public static CommitReport fromJson(String json) {
    return JsonUtil.parse(json, CommitReportParser::fromJson);
  }
@Test
  public void invalidSnapshotId() {
    assertThatThrownBy(
            () ->
                CommitReportParser.fromJson(
                    "{\"table-name\":\"roundTripTableName\",\"snapshot-id\":\"invalid\"}"))
        .isInstanceOf(IllegalArgumentException.class)
        .hasMessage("Cannot parse to a long value: snapshot-id: \"invalid\"");
  }