@Test
public void stopLocationUpdatesShouldCallLocationManagerRemoveUpdates() {

    LocationListener locationListener = Mockito.mock(LocationListener.class);
    LocationManager locationManager = Mockito.spy((LocationManager) ReflectionHelpers.getField(androidGpsLocationClient, "locationManager"));
    ReflectionHelpers.setField(androidGpsLocationClient, "locationManager", locationManager);
    androidGpsLocationClient.addLocationListener(locationListener);
    Assert.assertEquals(1, androidGpsLocationClient.getLocationListeners().size());
    androidGpsLocationClient.stopLocationUpdates();
    // Verify that the AndroidGPSLocationListener was also called
    Mockito.verify(locationManager, Mockito.times(2)).removeUpdates(Mockito.any(LocationListener.class));
}