Sentinel2Utils { public static String xYPoints2GML(final String pointsString) { final String PATTERN = "%1$s%3$s%2$s%4$s"; final String COORD_SEPARATOR = ","; final String POINT_SEPARATOR = " "; logger.debug("(xYPoints2GML)(pointsString:" + pointsString + ")|start"); final String GMLPoints = Sentinel2Utils.processXYPoints(pointsString, PATTERN, COORD_SEPARATOR, POINT_SEPARATOR); logger.debug("(xYPoints2GML) return:" + GMLPoints + "|end"); return GMLPoints; } private  Sentinel2Utils(); static String xYZpoints2GML(final String pointsString); static String xYZpoints2JTS(final String pointsString); static String xYPoints2GML(final String pointsString); static String xYPoints2JTS(final String pointsString); static String getEndPositionByStart(final String startTime); static String getSatelliteByProductName(final String productName); static String filterUselessZeros(final String integer); static String getAbsoluteOrbitFromDatatakeFilename(
         final String datatakeFileName); static String getFormattedTimeString(final String rawTimeString); static String formatNumber(double value); static final String DATE_TIME_FORMAT; static final long SENSING_TIME; }
@Test public void testXYPoints2GML() throws Exception { final String coordinates = "30.808316439 -98.493787625 30.595455667 -98.548865351 30.552856751 -98.279153369 30.765657846 -98.223211343 30.808316439 -98.493787625"; final String expected = "30.808316439,-98.493787625 30.595455667,-98.548865351 30.552856751,-98.279153369 30.765657846,-98.223211343 30.808316439,-98.493787625"; final String gmlPoints = Sentinel2Utils.xYPoints2GML(coordinates); Assert.assertEquals(expected, gmlPoints); }