array[4] = new Coordinate(0 + numFeatures + 50, 0 + numFeatures + 50);
LinearRing shell = new LinearRing(array, new PrecisionModel(), 0);
b.add(gf.createPolygon(shell, null));
b.add(0);
secondArrayGeometry[numFeatures] = gf.createPolygon(shell, null);
secondFeatures.add(b.buildFeature(numFeatures + ""));
}
UnionFeatureCollection process = new UnionFeatureCollection();
SimpleFeatureCollection output = process.execute(features, secondFeatures);
assertEquals(5, output.size());