@Test
public void testWriteSettingsToFile() {

    mockStatic(FileUtils.class);
    WhiteboxImpl.setInternalState(ctGeofenceAPI, "accountId", "4RW-Z6Z-485Z");
    when(FileUtils.getCachedDirName(application)).thenReturn("");
    Utils.writeSettingsToFile(application,
            CTGeofenceSettingsFake.getSettings(CTGeofenceSettingsFake.getSettingsJsonObject()));
    verifyStatic(FileUtils.class);
    FileUtils.writeJsonToFile(application, FileUtils.getCachedDirName(application),
            CTGeofenceConstants.SETTINGS_FILE_NAME, CTGeofenceSettingsFake.getSettingsJsonObject());
}