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());
Geometry[] union = new Geometry[10];
for (int i = 0; i < firstArrayGeometry.length; i++) {
union[i] = firstArrayGeometry[i];