PipelineOptionsFactory { public static PipelineOptions create() { return new Builder().as(PipelineOptions.class); }  static PipelineOptions create(); static T as(Class<T> klass); static Builder fromArgs(String... args); Builder withValidation(); static synchronized void register(Class<? extends PipelineOptions> iface); @Experimental static synchronized void resetCache(); static Set<Class<? extends PipelineOptions>> getRegisteredOptions(); static void printHelp(PrintStream out); static void printHelp(PrintStream out, Class<? extends PipelineOptions> iface); static List<PipelineOptionDescriptor> describe(
      Set<Class<? extends PipelineOptions>> ifaces);  }
@Test public void testOptionsIdIsSet() throws Exception { ObjectMapper mapper = new ObjectMapper() .registerModules(ObjectMapper.findModules(ReflectHelpers.findClassLoader())); PipelineOptions options = PipelineOptionsFactory.create(); PipelineOptions clone = mapper.readValue(mapper.writeValueAsString(options), PipelineOptions.class); assertEquals(options.getOptionsId(), clone.getOptionsId()); }