LimitedComparableProperty extends SimpleObjectProperty<T> implements LimitedProperty<T> { @Override public final void setMin(T min) { this.min.set(min); } LimitedComparableProperty();  LimitedComparableProperty(T initialValue);  LimitedComparableProperty(Object bean, String name);  LimitedComparableProperty(Object bean, String name, T initialValue);  LimitedComparableProperty(T min, T max);  LimitedComparableProperty(T initialValue, T min, T max);  LimitedComparableProperty(Object bean, String name, T min, T max);  LimitedComparableProperty(Object bean, String name, T initialValue, T min, T max); @Override ObjectProperty<T> minProperty(); @Override final T getMin(); @Override final void setMin(T min); @Override ObjectProperty<T> maxProperty(); @Override final T getMax(); @Override final void setMax(T max); @Override void set(T t);  }
@Test public void testSetMin() { test.set(1); assertEquals(1, test.get().intValue()); test.setMin(0); assertEquals(0, test.getMin().intValue()); assertEquals(1, test.get().intValue()); test.setMin(2); assertEquals(2, test.getMin().intValue()); assertEquals(2, test.get().intValue()); test.setMin(null); assertNull(test.getMin()); assertEquals(2, test.get().intValue()); }