### Question:
LocationUtils { public static boolean isSameProvider(final String provider1, final String provider2) { if (provider1 == null) { return provider2 == null; } return provider1.equals(provider2); } private  LocationUtils(); static Location getLastKnownLocation(final Context context); static Location getLastKnownLocation(final Context context, final String...providers); static Location getLastKnownLocation(final LocationManager locationManager); static Location getLastKnownLocation(final LocationManager locationManager, final String...providers); static boolean isBetterLocation(final Location currentLocation, final Location newLocation); static boolean isSameProvider(final String provider1, final String provider2);  }### Answer:
@Test public void testIsSameProvider() { assertTrue(LocationUtils.isSameProvider(null, null)); assertTrue(LocationUtils.isSameProvider(LocationManager.GPS_PROVIDER, LocationManager.GPS_PROVIDER)); assertTrue(LocationUtils.isSameProvider(LocationManager.NETWORK_PROVIDER, LocationManager.NETWORK_PROVIDER)); assertFalse(LocationUtils.isSameProvider(null, LocationManager.NETWORK_PROVIDER)); assertFalse(LocationUtils.isSameProvider(LocationManager.GPS_PROVIDER, null)); assertFalse(LocationUtils.isSameProvider(LocationManager.GPS_PROVIDER, LocationManager.NETWORK_PROVIDER)); }