public PipelineOptions get() {
    return options;
  }
@Test
  public void testSerializationAndDeserialization() throws Exception {
    PipelineOptions options =
        PipelineOptionsFactory.fromArgs("--foo=testValue", "--ignoredField=overridden")
            .as(MyOptions.class);

    SerializablePipelineOptions serializableOptions = new SerializablePipelineOptions(options);
    assertEquals("testValue", serializableOptions.get().as(MyOptions.class).getFoo());
    assertEquals("overridden", serializableOptions.get().as(MyOptions.class).getIgnoredField());

    SerializablePipelineOptions copy = SerializableUtils.clone(serializableOptions);
    assertEquals("testValue", copy.get().as(MyOptions.class).getFoo());
    assertEquals("not overridden", copy.get().as(MyOptions.class).getIgnoredField());
  }