Add JavaFXThreadingRule to support junit test.