Union extends Operator<InputT> { @SafeVarargs public static <InputT> Builders.Output<InputT> of(PCollection<InputT>... pCollections) { return of(Arrays.asList(pCollections)); } private  Union(@Nullable String name, @Nullable TypeDescriptor<InputT> outputType); @SafeVarargs static Builders.Output<InputT> of(PCollection<InputT>... pCollections); static Builders.Output<InputT> of(List<PCollection<InputT>> pCollections); static OfBuilder named(@Nullable String name);  }
@Test public void testBuild_ImplicitName() { final TestPipeline pipeline = TestUtils.createTestPipeline(); final PCollection<String> left = TestUtils.createMockDataset(pipeline, TypeDescriptors.strings()); final PCollection<String> right = TestUtils.createMockDataset(pipeline, TypeDescriptors.strings()); final PCollection<String> unioned = Union.of(left, right).output(); final Union union = (Union) TestUtils.getProducer(unioned); assertFalse(union.getName().isPresent()); }