MenuActions { @SuppressWarnings("UnusedParameters") protected void zoomOut(ActionEvent actionEvent) { toplevelPane.zoom(1 / 1.1); } MenuActions(final MainOverlay ol, final ToplevelPane tl);   }
@Test public void zoomOutTest() { ToplevelPane mockToplevelPane = mock(ToplevelPane.class); when(mockMainOverlay.getToplevelPane()).thenReturn(mockToplevelPane); MenuActions menuActions = new MenuActions(mockMainOverlay, mockToplevelPane); menuActions.zoomOut(mockEvent); verify(mockToplevelPane, times(1)).zoom(1/1.1); }