@Test public void testEmpty() { TupleTag<Object> tag = new TupleTag<>(); assertFalse(PCollectionTuple.empty(pipeline).has(tag)); }
@Test public void testOfThenHas() { PCollection<Integer> pCollection = PCollection.createPrimitiveOutputInternal( pipeline, WindowingStrategy.globalDefault(), IsBounded.BOUNDED, VarIntCoder.of()); TupleTag<Integer> tag = new TupleTag<>(); assertTrue(PCollectionTuple.of(tag, pCollection).has(tag)); }