I would assume that I would obtain the 4 corner coordinates of the mosaic. The script proposed by @kedziorm assumes a square scene using min and max of the lat-long which is not valid when your data have been reprojected.
for point in Path:
print point.getCurrentPoint().toString()
Returns a single set of coordinates, what am I doing wrong?
The method is named createGeoBoundaryPaths, so you get an array of path. In most cases there will only one but there can be two or three if the product crosses the anti-meridian. Also, this method creates for every ~8th border pixel one location.
Maybe the method GeoPos[] ProductUtils.createGeoBoundary(Product product, int step) is more appropriate for you. It return an GeoPos-array which you can iterate.
If you are only interested in the corner coordinates. You could only ask for them: