@@ -0,0 +1,2021 @@
+package org.apache.beam.runners.spark.structuredstreaming.translation.batch;%0A%0Aimport java.io.Serializable;%0Aimport org.apache.beam.runners.spark.structuredstreaming.SparkPipelineOptions;%0Aimport org.apache.beam.runners.spark.structuredstreaming.SparkRunner;%0Aimport org.apache.beam.sdk.Pipeline;%0Aimport org.apache.beam.sdk.options.PipelineOptions;%0Aimport org.apache.beam.sdk.options.PipelineOptionsFactory;%0Aimport org.apache.beam.sdk.transforms.Combine;%0Aimport org.apache.beam.sdk.transforms.Count;%0Aimport org.apache.beam.sdk.transforms.Create;%0Aimport org.apache.beam.sdk.transforms.DoFn;%0Aimport org.apache.beam.sdk.transforms.ParDo;%0Aimport org.apache.beam.sdk.values.PCollection;%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.junit.runners.JUnit4;%0A%0A/** Test class for beam to spark %7B@link org.apache.beam.sdk.transforms.Combine%7D translation. */%0A@RunWith(JUnit4.class)%0Apublic class CombineTest implements Serializable %7B%0A  private static Pipeline pipeline;%0A%0A  @BeforeClass%0A  public static void beforeClass() %7B%0A    PipelineOptions options = PipelineOptionsFactory.create().as(SparkPipelineOptions.class);%0A    options.setRunner(SparkRunner.class);%0A    pipeline = Pipeline.create(options);%0A  %7D%0A%0A  @Test%0A  public void testCombine() %7B%0A    PCollection%3CInteger%3E input = pipeline.apply(Create.of(1, 2, 3, 4, 5, 6, 7, 8, 9, 10));%0A    input.apply(Combine.globally(new Combine.CombineFn%3CInteger, Integer, Integer%3E() %7B%0A%0A      @Override public Integer createAccumulator() %7B%0A        return 0;%0A      %7D%0A%0A      @Override public Integer addInput(Integer accumulator, Integer input) %7B%0A        return accumulator + input;%0A      %7D%0A%0A      @Override public Integer mergeAccumulators(Iterable%3CInteger%3E accumulators) %7B%0A        Integer result = 0;%0A        for (Integer value : accumulators)%7B%0A          result += value;%0A        %7D%0A        return result;%0A      %7D%0A%0A      @Override public Integer extractOutput(Integer accumulator) %7B%0A        return accumulator;%0A      %7D%0A    %7D));%0A    pipeline.run();%0A  %7D%0A%7D%0A

Add a test for the most simple possible Combine