@Test
public void testReadLong() {

  // given
  String name = "long";
  long value = Long.MIN_VALUE;
  LongProperty property = new SimpleLongProperty(null, name, -value);
  // when
  preferences.putLong(name, value);
  // then
  PreferencesUtils.read(property, preferences);
  assertEquals(property.getValue().longValue(), value);
}