```class Test: ApplicationTest() { FxToolkit....
# tornadofx
a
Copy code
class Test: ApplicationTest() {

    FxToolkit.registerPrimaryStage()
    .....
    @Test fun testTextfield() {
        find<Editor>(CatScheduleScope( ))
        val textfield = lookup("#beep") as TextField // NPE exception here
        verifyThat("#beep", hasText(textfield.text))
    }
}