@Test
public void requestLocationUpdatesShouldCallLocationManagerRequestLocationUpdates() {

    LocationListener locationListener = Mockito.mock(LocationListener.class);
    LocationManager locationManager = Mockito.spy((LocationManager) ReflectionHelpers.getField(androidGpsLocationClient, "locationManager"));
    ReflectionHelpers.setField(androidGpsLocationClient, "locationManager", locationManager);
    // Mock call to KujakuLibrary.showToast
    KujakuLibrary kujakuLibrary = Mockito.mock(KujakuLibrary.class);
    ReflectionHelpers.setStaticField(KujakuLibrary.class, "library", kujakuLibrary);
    Mockito.doNothing().when(kujakuLibrary).showToast(Mockito.anyString());
    Location location = new Location(LocationManager.GPS_PROVIDER);
    location.setAccuracy(4f);
    location.setAltitude(23f);
    location.setLatitude(3d);
    location.setLongitude(1d);
    Mockito.doReturn(true).when(locationManager).registerGnssStatusCallback(Mockito.any(GnssStatus.Callback.class));
    Mockito.doReturn(location).when(locationManager).getLastKnownLocation(Mockito.eq(LocationManager.GPS_PROVIDER));
    Mockito.doReturn(true).when(locationManager).isProviderEnabled(Mockito.eq(LocationManager.GPS_PROVIDER));
    Mockito.doNothing().when(locationManager).requestLocationUpdates(Mockito.anyString(), Mockito.anyLong(), Mockito.anyFloat(), Mockito.any(LocationListener.class));
    androidGpsLocationClient.requestLocationUpdates(locationListener);
    Mockito.verify(locationManager, Mockito.times(1))
            .requestLocationUpdates(Mockito.eq(LocationManager.GPS_PROVIDER), Mockito.eq(1000L), Mockito.eq(0f), Mockito.any(LocationListener.class));
}