AdminPageItemPresenter { public void enter() { adminTool.getOnClickCommand().execute(); adminPageConfigurationEvent.fire(preferencesCentralActionsConfigurationEventToFire); } @Inject  AdminPageItemPresenter(final View view,
                                  final PlaceManager placeManager,
                                  final Event<PreferencesCentralActionsConfigurationEvent> adminPageConfigurationEvent); void setup(final AdminTool adminTool,
                      final String screen,
                      final String perspectiveIdentifierToGoBackTo); void enter(); AdminTool getAdminTool(); View getView();  }
@Test public void enterTest() { final Command command = spy(new Command() { @Override public void execute() { } }); AdminTool adminTool = new AdminTool("title1", Collections.singleton("iconCss1"), "category1", command); presenter.setup(adminTool, "screen", null); presenter.enter(); verify(view).init(presenter); verify(command).execute(); verify(adminPageConfigurationEvent).fire(any(PreferencesCentralActionsConfigurationEvent.class)); }