@Test
public void testReadWhenNoValuePresent() {

  // given
  double initialValue = 123.456;
  DoubleProperty property = new SimpleDoubleProperty(null, "foo", initialValue);
  // when
  PreferencesUtils.read(property, preferences);
  // then
  assertEquals(initialValue, property.getValue().doubleValue());
}