SerializablePipelineOptions implements Serializable { @Override public String toString() { return serializedPipelineOptions; } SerializablePipelineOptions(PipelineOptions options);  SerializablePipelineOptions(String json); PipelineOptions get(); @Override String toString(); @Override boolean equals(@Nullable Object o); @Override int hashCode();  }
@Test public void equalityTest() { PipelineOptions options = PipelineOptionsFactory.create(); SerializablePipelineOptions serializablePipelineOptions = new SerializablePipelineOptions(options); String json = serializablePipelineOptions.toString(); SerializablePipelineOptions serializablePipelineOptions2 = new SerializablePipelineOptions(json); assertEquals( "SerializablePipelineOptions created from options and from json differ", serializablePipelineOptions, serializablePipelineOptions2); }