@Test
public void testReadBoolean() {

  // given
  String name = "boolean";
  boolean value = true;
  BooleanProperty property = new SimpleBooleanProperty(null, name, !value);
  preferences.putBoolean(name, value);
  // when
  PreferencesUtils.read(property, preferences);
  // then
  assertEquals(property.getValue(), value);
}