### Question:
InteractionTreeListening { public void initialize() { LeftClickPanner panner = new LeftClickPanner(polygonPanel); polygonPanel.addMousePressListener(panner); polygonPanel.addMouseMotionListener(panner); polygonPanel.addMouseClickListener(new LeftClickSelector(cascade, polygonPanel, interactionListener)); polygonPanel.addMouseClickListener(new CtrlLeftClickDetailsRequester(cascade, polygonPanel, interactionListener)); polygonPanel.addMouseClickListener(new RightClickResetter(polygonPanel)); polygonPanel.addMouseClickListener(new RightClickCenterer(polygonPanel)); polygonPanel.addMouseMotionListener(new CursorChanger(polygonPanel)); polygonPanel.addMouseWheelListener(new WheelScaler(polygonPanel)); } InteractionTreeListening(Cascade cascade, PolygonPanel polygonPanel, NodeInteractionListener interactionListener); void initialize();  }### Answer:
@Test public void addsPanListenerForDragAndClick() throws Exception { listening.initialize(); ArgumentCaptor<LeftClickPanner> captor = ArgumentCaptor.forClass(LeftClickPanner.class); verify(panel, atLeastOnce()).addMouseMotionListener(captor.capture()); verify(panel).addMousePressListener(captor.getAllValues().get(0)); }
@Test public void addsToggleListenerForLeftClick() throws Exception { listening.initialize(); verify(panel).addMouseClickListener(isA(LeftClickSelector.class)); }
@Test public void addsResetListenerForRightClick() throws Exception { listening.initialize(); verify(panel).addMouseClickListener(isA(RightClickResetter.class)); }
@Test public void addsCenterListenerForRightClick() throws Exception { listening.initialize(); verify(panel).addMouseClickListener(isA(RightClickCenterer.class)); }
@Test public void addsScalerForWheel() throws Exception { listening.initialize(); verify(panel).addMouseWheelListener(isA(WheelScaler.class)); }
@Test public void addsCursorChanger() throws Exception { listening.initialize(); verify(panel).addMouseMotionListener(isA(CursorChanger.class)); }
@Test public void addsDetailRequesterForCtrlLeftClick() throws Exception { listening.initialize(); verify(panel).addMouseClickListener(isA(CtrlLeftClickDetailsRequester.class)); }