How do you mock a JavaFX toolkit initialization?
问题 [preamble: apologies, there is a lot of code here, and some of it may not be relevant to this question while some code which is necessary to understand the problem may be missing; please comment, and I will edit the question accordingly.] Environment: Ubuntu 14.10 x86_64; Oracle JDK 1.8u25. Unit testing library is TestNG, version 6.8.13; Mockito is version 1.10.17. In my GUI application, what JavaFX calls a "controller" is pretty passive, in the sense that the only thing that this "controller