public static <T> KryoCoder<T> of() {
    return of(PipelineOptionsFactory.create(), Collections.emptyList());
  }
@Test
  public void testBasicCoding() throws IOException {
    final KryoCoder<ClassToBeEncoded> coder =
        KryoCoder.of(OPTIONS, k -> k.register(ClassToBeEncoded.class));
    assertEncoding(coder);
  }