static Clustering clusteringFromJsonFields(String jsonStringClustering) {
    JsonElement jsonClustering = JsonParser.parseString(jsonStringClustering);

    checkArgument(
        jsonClustering.isJsonArray(),
        "Received an invalid Clustering json string: %s."
            + "Please provide a serialized json array like so: [\"column1\", \"column2\"]",
        jsonStringClustering);

    List<String> fields =
        jsonClustering.getAsJsonArray().asList().stream()
            .map(JsonElement::getAsString)
            .collect(Collectors.toList());

    return new Clustering().setFields(fields);
  }
@Test
  public void testClusteringJsonConversion() {
    Clustering clustering =
        new Clustering().setFields(Arrays.asList("column1", "column2", "column3"));
    String jsonClusteringFields = "[\"column1\", \"column2\", \"column3\"]";

    assertEquals(clustering, BigQueryHelpers.clusteringFromJsonFields(jsonClusteringFields));
  }