assert slider.getValue() == 75 : "Wrong slider position: " + slider.getValue();
String displayedValue = frameFixture.label().text();
assert displayedValue.equals("0.75") : "Wrong value displayed: " + displayedValue;
frameFixture.slider().slideTo(80); // 80 ticks is a probability of 0.8.
robot.waitForIdle();
double probability = control.getNumberGenerator().nextValue().doubleValue();
assert probability == 0.8 : "Wrong probability: " + probability;
displayedValue = frameFixture.label().text();
assert displayedValue.equals("0.80") : "Wrong value displayed: " + displayedValue;