### Question:
NavigationViewEventDispatcher { void onFeedbackOpened() { if (feedbackListener != null) { feedbackListener.onFeedbackOpened(); } }    }### Answer:
@Test public void onFeedbackListenerNotSet_feedbackOpenedIsNotCalled() throws Exception { NavigationViewEventDispatcher eventDispatcher = new NavigationViewEventDispatcher(); FeedbackListener feedbackListener = mock(FeedbackListener.class); eventDispatcher.onFeedbackOpened(); verify(feedbackListener, times(0)).onFeedbackOpened(); }
@Test public void onFeedbackListenerNotSet_feedbackOpenedIsNotCalled() { NavigationViewEventDispatcher eventDispatcher = new NavigationViewEventDispatcher(); FeedbackListener feedbackListener = mock(FeedbackListener.class); eventDispatcher.onFeedbackOpened(); verify(feedbackListener, times(0)).onFeedbackOpened(); }