@Test
public void testReadString() {

  // given
  String name = "string";
  String value = "foo";
  StringProperty property = new SimpleStringProperty(null, name, "bar");
  preferences.put(name, value);
  // when
  PreferencesUtils.read(property, preferences);
  // then
  assertEquals(property.getValue(), value);
}