public static LoadViewResponse fromJson(String json) {
    return JsonUtil.parse(json, LoadViewResponseParser::fromJson);
  }
@Test
  public void missingFields() {
    assertThatThrownBy(() -> LoadViewResponseParser.fromJson("{\"x\": \"val\"}"))
        .isInstanceOf(IllegalArgumentException.class)
        .hasMessage("Cannot parse missing string: metadata-location");

    assertThatThrownBy(
            () -> LoadViewResponseParser.fromJson("{\"metadata-location\": \"custom-location\"}"))
        .isInstanceOf(IllegalArgumentException.class)
        .hasMessage("Cannot parse missing field: metadata");
  }