@Test
public void testSaveThrowsWithNullValue() {

  Property<?> property = new SimpleObjectProperty<>(null);
  assertThrows(IllegalArgumentException.class, () -> PreferencesUtils.save(property, preferences, null));
}