### Question:
ActionlogController extends AbstractController implements Initializable, Observer { void addSentMessage(DropMessage dropMessage) throws EntityNotFoundException { if (dropMessage.getDropPayload().equals("")) { return; } Map<String, Object> injectionContext = new HashMap<>(); injectionContext.put("dropMessage", dropMessage); injectionContext.put("sender", identity.getAlias()); boolean first = lastSender != identity; lastSender = identity; ActionlogItemView myItemView = new ActionlogItemView(injectionContext::get); Parent view = myItemView.getView(); view.getStyleClass().add("received"); view.getStyleClass().add(first ? "first" : "sequence"); messages.getChildren().add(view); messageView.add(myItemView); messageControllers.add((ActionlogItem) myItemView.getPresenter()); }  @Override void initialize(URL location, ResourceBundle resources); List<PersistenceDropMessage> getReceivedDropMessages(); @Override synchronized void update(Observable o, Object arg); synchronized void setContact(Contact contact); void handleAccept(); void handleIgnore(); void selectEmoji(); @FXML
    public BorderPane chat; @FXML
    public ImageView emojiSelector; }### Answer:
@Test public void addOwnMessageToActionlogTest() throws Exception { controller.addSentMessage(dm); assertEquals(1, controller.messages.getChildren().size()); }