BooleanBoxWidget extends SimpleAnnotatedWidget<Boolean> { public Color getFalseColor() { return falseColor.getValue(); }  @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 public void testColorWhenFalse() { widget.getSource().setData(false); WaitForAsyncUtils.waitForFxEvents(); assertEquals(widget.getFalseColor(), getBackground(), "Background should be the 'false' color"); }