static Schema removeFields(Schema schema, String... fields) {
    List<String> exclude = Arrays.stream(fields).collect(Collectors.toList());
    Schema.Builder builder = Schema.builder();
    for (Field field : schema.getFields()) {
      if (exclude.contains(field.getName())) {
        continue;
      }
      builder.addField(field);
    }
    return builder.build();
  }
@Test
  public void testRemoveFields() {
    Schema input = Schema.of(STRING_FIELD, BOOLEAN_FIELD, INT64_FIELD);
    Schema expected = Schema.builder().build();
    Schema actual =
        removeFields(input, STRING_FIELD.getName(), BOOLEAN_FIELD.getName(), INT64_FIELD.getName());
    assertEquals(expected, actual);
  }