Although components can be located in the AUT even when they are not named by the developers, naming components is nevertheless a good idea. You can improve the testability of your application by using the following method in your JavaFX code for the current component class: setId();.