@Test
public void testReadSettingsFromFile() {

    mockStatic(FileUtils.class);
    when(FileUtils.getCachedFullPath(any(Context.class),
            anyString())).thenReturn("");
    // when settings in file is not blank
    when(FileUtils.readFromFile(any(Context.class),
            anyString())).thenReturn(CTGeofenceSettingsFake.getSettingsJsonString());
    CTGeofenceSettings settingsActualWhenNotEmpty = Utils.readSettingsFromFile(application);
    CTGeofenceSettings settingsExpectedWhenNotEmpty =
            CTGeofenceSettingsFake.getSettings(CTGeofenceSettingsFake.getSettingsJsonObject());
    assertThat(settingsActualWhenNotEmpty, samePropertyValuesAs(settingsExpectedWhenNotEmpty));
    // when settings in file is blank
    when(FileUtils.readFromFile(any(Context.class),
            anyString())).thenReturn("");
    CTGeofenceSettings settingsActualWhenEmpty = Utils.readSettingsFromFile(application);
    assertNull(settingsActualWhenEmpty);
}