@Test
public void testExecuteTC2() {

    // when pending intent is null and bgLocationUpdate is false
    CTGeofenceSettings ctGeofenceSettings = new CTGeofenceSettings.Builder()
            .enableBackgroundLocationUpdates(false).build();
    when(ctGeofenceAPI.getGeofenceSettings()).thenReturn(ctGeofenceSettings);
    LocationUpdateTask task = new LocationUpdateTask(application);
    task.execute();
    verify(ctLocationAdapter, never()).requestLocationUpdates();
    verify(ctLocationAdapter, never()).removeLocationUpdates(any(PendingIntent.class));
    verifyStatic(Utils.class);
    Utils.writeSettingsToFile(any(Context.class), any(CTGeofenceSettings.class));
}