public static KryoCoderProvider of() {
    return of(PipelineOptionsFactory.create(), Collections.emptyList());
  }
@Test
  public void testItProvidesCodersToRegisteredClasses() throws CannotProvideCoderException {
    final KryoCoderProvider provider =
        KryoCoderProvider.of(
            pipeline.getOptions(),
            kryo -> {
              kryo.register(FirstTestClass.class);
              kryo.register(SecondTestClass.class);
              kryo.register(ThirdTestClass.class);
            });
    assertProviderReturnsKryoCoderForClass(provider, FirstTestClass.class);
    assertProviderReturnsKryoCoderForClass(provider, SecondTestClass.class);
    assertProviderReturnsKryoCoderForClass(provider, ThirdTestClass.class);
  }