### Question:
LatitudeFormatter extends BaseLocationFormatter { @Override public String getFormat(List<String> values) { LatitudeCellSampler sampler = new LatitudeCellSampler(values); LocationDetector detector = new LocationDetector(myRegistry); ValuesWithConfidence<LocationResults> valueWithConf = detector.detect(sampler); LocationResults results = valueWithConf.getBestValue(); LatLonColumnResults result = results == null ? null : results.getMostLikelyLatLonColumnPair(); PotentialLocationColumn column = result == null ? null : result.getLatColumn(); if (column == null) { return super.getFormat(values); } CoordFormat fmt = column.getLatFormat(); if (fmt != null) { return fmt.toString(); } return null; } LatitudeFormatter(PreferencesRegistry registry); @Override Object formatCell(String val, String fmtString); @Override String getFormat(List<String> values);  }### Answer:
@Test public void testGetFormat() { PreferencesRegistry registry = LocationTestUtils.getPrefsRegistry(); LatitudeFormatter formatter = new LatitudeFormatter(registry); String format = formatter.getFormat(New.list("39.9358858333")); assertEquals(CoordFormat.DECIMAL.toString(), format); format = formatter.getFormat(New.list("39°56'9.189\"N")); assertEquals(CoordFormat.DMS.toString(), format); }