### Question:
FeedbackController extends AbstractController implements Initializable { void showThanksDialog() { alert = new Alert(Alert.AlertType.INFORMATION, "", ButtonType.OK); alert.setTitle(infoTitle); alert.setContentText(infoMessage); alert.setHeaderText(""); alert.show(); }  @Override void initialize(URL location, ResourceBundle resources);  }### Answer:
@Test public void showAlertDialog() { createController(); runLaterAndWait(() -> { controller.showThanksDialog(); }); String alertInfoTitle = resourceBundle.getString("feedBackInfoHeader"); String alertInfoMessage = resourceBundle.getString("feedBackInfoMessage"); assertNotNull(controller.alert); assertEquals(alertInfoTitle, controller.alert.getTitle()); assertEquals(alertInfoMessage, controller.alert.getContentText()); assertAsync(controller.alert::isShowing); }