ToolAdminPresenterImpl implements ToolAdminView.Presenter,
                                               AddToolSelectedEvent.AddToolSelectedEventHandler,
                                               ToolSelectedEvent.ToolSelectedEventHandler,
                                               SaveToolSelectedEvent.SaveToolSelectedEventHandler,
                                               DeleteToolSelectedEvent.DeleteToolSelectedEventHandler { @Override public void onSaveToolSelected(SaveToolSelectedEvent event) { updateTool(event.getTool(), false); } @Inject  ToolAdminPresenterImpl(final ToolAdminViewFactory viewFactory,
                                  ToolAdminServiceFacade toolAdminServiceFacade,
                                  ToolAutoBeanFactory factory,
                                  ToolProperties toolProperties,
                                  ToolAdminView.ToolAdminViewAppearance appearance); @Override void go(HasOneWidget container); @Override void setViewDebugId(String baseId); @Override void onAddToolSelected(AddToolSelectedEvent event); @Override void onDeleteToolSelected(final DeleteToolSelectedEvent event); @Override void onToolSelected(ToolSelectedEvent event); @Override void onSaveToolSelected(SaveToolSelectedEvent event);  }
@Test public void testOnSaveToolSelected() { Tool toolMock = mock(Tool.class); SaveToolSelectedEvent saveToolSelectedEventMock = mock(SaveToolSelectedEvent.class); when(saveToolSelectedEventMock.getTool()).thenReturn(toolMock); uut.onSaveToolSelected(saveToolSelectedEventMock); uut.updateTool(eq(toolMock), eq(anyBoolean())); }