@Test
public void testExecuteWhenLocationAdapterIsNull() {

    // when location adapter is null
    WhiteboxImpl.setInternalState(ctGeofenceAPI, "ctLocationAdapter", (Object[]) null);
    LocationUpdateTask task = new LocationUpdateTask(application);
    task.execute();
    verifyStatic(Utils.class, never());
    Utils.writeSettingsToFile(any(Context.class), any(CTGeofenceSettings.class));
}