@Override
  public String serialize(SarifSchema210 sarif210) {
    try {
      return mapper
        .writerWithDefaultPrettyPrinter()
        .writeValueAsString(sarif210);
    } catch (JsonProcessingException e) {
      throw new IllegalStateException("Unable to serialize SARIF", e);
    }
  }
@Test
  public void serialize() {
    new Run().withResults(List.of());
    SarifSchema210 sarif210 = new SarifSchema210()
      .with$schema(URI.create("http://json.schemastore.org/sarif-2.1.0-rtm.4"))
      .withVersion(SarifSchema210.Version._2_1_0)
      .withRuns(List.of(new Run().withResults(List.of())));

    String result = serializer.serialize(sarif210);

    JsonAssert.assertJson(result).isSimilarTo(SARIF_JSON);
  }