### Question:
ActivityController implements Initializable { @FXML public void clearAction(ActionEvent event) { activityLogger.clearActivityItems(); logger.debug("Clear activity items."); } @Inject  ActivityController(final ActivityLogger activityLogger); @Override void initialize(URL location, ResourceBundle resources); @FXML void clearAction(ActionEvent event); @FXML void openLogAction(ActionEvent event);  }### Answer:
@Test public void testClearAction() { controller.clearAction(null); Mockito.verify(logger, times(1)).clearActivityItems(); }