### Question:
PositionFormatter extends BaseLocationFormatter { @Override public String getFormat(List<String> values) { PositionCellSampler sampler = new PositionCellSampler(values); LocationDetector detector = new LocationDetector(myRegistry); ValuesWithConfidence<LocationResults> valueWithConf = detector.detect(sampler); LocationResults results = valueWithConf.getBestValue(); PotentialLocationColumn column = results == null ? null : results.getMostLikelyLocationColumn(); CoordFormat fmt = column == null ? null : column.getLatFormat(); if (fmt != null) { return fmt.toString(); } return null; } PositionFormatter(PreferencesRegistry registry); @Override Object formatCell(String cellValue, String fmtString); @Override String getFormat(List<String> values);  }### Answer:
@Test public void testGetFormat() { PreferencesRegistry registry = LocationTestUtils.getPrefsRegistry(); PositionFormatter formatter = new PositionFormatter(registry); String format = formatter.getFormat(New.list("39.9358858333 -105.3927469444")); assertEquals("Decimal", format); format = formatter.getFormat(New.list("39°56'9.189\"N 105°23'33.889\"W")); assertEquals("DMS", format); }