@Test public void testOnNestedElementAdded() { observer.init(presenter); observer.onNestedElementAdded(new ExpressionEditorChanged(uuid)); verify(presenter).refresh(); }
void onNestedElementAdded(final @Observes ExpressionEditorChanged event) { getOptionalPresenter().ifPresent(DecisionNavigatorPresenter::refresh); }
DecisionNavigatorObserver { void onNestedElementAdded(final @Observes ExpressionEditorChanged event) { getOptionalPresenter().ifPresent(DecisionNavigatorPresenter::refresh); } }
DecisionNavigatorObserver { void onNestedElementAdded(final @Observes ExpressionEditorChanged event) { getOptionalPresenter().ifPresent(DecisionNavigatorPresenter::refresh); }  }
DecisionNavigatorObserver { void onNestedElementAdded(final @Observes ExpressionEditorChanged event) { getOptionalPresenter().ifPresent(DecisionNavigatorPresenter::refresh); }  void init(final DecisionNavigatorPresenter presenter); }
DecisionNavigatorObserver { void onNestedElementAdded(final @Observes ExpressionEditorChanged event) { getOptionalPresenter().ifPresent(DecisionNavigatorPresenter::refresh); }  void init(final DecisionNavigatorPresenter presenter);  }