final private List<String> expected = FXCollections.observableArrayList("ListSpinner");
private volatile boolean pass = true;
@Test
public void TestAnonymousListSpinner() throws Exception {
final ListSpinner spinner = new ListSpinner() {};
Assert.assertEquals(expected, spinner.getStyleClass());
FXTestUtils.invokeAndWait(new Runnable() {
@Override
public void run() {
root.getChildren().add(spinner);
}