@Test
public void testRequestLocationUpdatesTC1() throws Exception {

    // when backgroundLocationUpdates not enabled
    when(LocationServices.getFusedLocationProviderClient(application))
            .thenReturn(providerClient);
    GoogleLocationAdapter locationAdapter = new GoogleLocationAdapter(application);
    CTGeofenceSettings ctGeofenceSettings = new CTGeofenceSettings.Builder()
            .setLocationFetchMode(CTGeofenceSettings.FETCH_CURRENT_LOCATION_PERIODIC)
            .enableBackgroundLocationUpdates(false).build();
    when(ctGeofenceAPI.getGeofenceSettings()).thenReturn(ctGeofenceSettings);
    locationAdapter.requestLocationUpdates();
    verify(cleverTapAPI).pushGeoFenceError(anyInt(), anyString());
    verify(providerClient, never()).requestLocationUpdates(
            any(LocationRequest.class), any(PendingIntent.class));
}