public static <T> Values<T> of(Iterable<T> elems) {
    return new Values<>(elems, Optional.absent(), Optional.absent(), false);
  }
@Test
  public void testCreateRegisteredSchema() {
    p.getSchemaRegistry()
        .registerSchemaForClass(
            String.class,
            STRING_SCHEMA,
            s -> Row.withSchema(STRING_SCHEMA).addValue(s).build(),
            r -> r.getString("field"));
    PCollection<String> out = p.apply(Create.of("a", "b", "c", "d"));
    assertThat(out.getCoder(), instanceOf(SchemaCoder.class));
  }