GeoUtils { public static String capitalizeGps(String locationProvider) { return "gps".equals(locationProvider) ? "GPS" : locationProvider; } private  GeoUtils(); static String formatLocationResultString(Location location); static String capitalizeGps(String locationProvider);  }
@Test public void capitalizesGps() { String input = "gps"; assertEquals("GPS", GeoUtils.capitalizeGps(input)); String locationProvider = "network"; assertEquals("network", GeoUtils.capitalizeGps(locationProvider)); String nullLocationProvider = null; assertNull(GeoUtils.capitalizeGps(nullLocationProvider)); }