BooleanBoxWidget extends SimpleAnnotatedWidget<Boolean> { public void setTrueColor(Color trueColor) { this.trueColor.setValue(trueColor); }  @Override List<Group> getSettings(); @Override Pane getView(); Color getTrueColor(); Property<Color> trueColorProperty(); void setTrueColor(Color trueColor); Color getFalseColor(); Property<Color> falseColorProperty(); void setFalseColor(Color falseColor);  }
@Test @Disabled public void testChangeTrueColor() { final Color color = Color.WHITE; widget.getSource().setData(true); widget.setTrueColor(color); WaitForAsyncUtils.waitForFxEvents(); assertEquals(color, getBackground(), "Background was the wrong color"); }