### Question:
ActivityController implements Initializable { @Override public void initialize(URL location, ResourceBundle resources) { loadItems(); Platform.runLater(() -> { lstActivityLog.requestFocus(); }); } @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 testInitialize() { controller.initialize(null, null); assertEquals( logger.getActivityItems(), controller.getActivityLogListView().getItems() ); logger.getActivityItems().add(ActivityItem.create()); assertTrue(controller.getActivityLogListView().getItems().size() == 1); }