NewScenarioSimulationHandler extends DefaultNewResourceHandler { protected void getCommandMethod(NewResourcePresenter newResourcePresenter) { uploadWidget.clearStatus(); newResourcePresenter.show(NewScenarioSimulationHandler.this); } @Inject  NewScenarioSimulationHandler(final ScenarioSimulationResourceType resourceType,
                                        final BusyIndicatorView busyIndicatorView,
                                        final Event<NotificationEvent> notificationEvent,
                                        final Event<NewResourceSuccessEvent> newResourceSuccessEvent,
                                        final PlaceManager placeManager,
                                        final Caller<ScenarioSimulationService> scenarioSimulationService,
                                        final AuthorizationManager authorizationManager,
                                        final SessionInfo sessionInfo,
                                        @Named(ScenarioSimulationDropdown.BEAN_NAME) final ScenarioSimulationDropdown scenarioSimulationDropdown); @Override String getDescription(); @Override IsWidget getIcon(); @Override ResourceTypeDefinition getResourceType(); @Override boolean canCreate(); @Override Command getCommand(final NewResourcePresenter newResourcePresenter); @Override void create(final Package pkg,
                       final String baseFileName,
                       final NewResourcePresenter presenter); @PostConstruct void setupExtensions();  }
@Test public void getCommandMethod() { NewResourcePresenter newResourcePresenterMock = mock(NewResourcePresenter.class); handler.getCommandMethod(newResourcePresenterMock); verify(uploadWidgetMock, times(1)).clearStatus(); verify(newResourcePresenterMock, times(1)).show(any()); }