### Question:
ProviderPresenter { public void deploy() { addNewRuntimeEvent.fire(new AddNewRuntimeEvent(provider)); } @Inject  ProviderPresenter(final View view,
                             final Caller<ProviderService> providerService,
                             final Caller<ProvisioningScreensService> provisioningScreensService,
                             final ProviderStatusEmptyPresenter providerStatusEmptyPresenter,
                             final ProviderStatusPresenter providerStatusPresenter,
                             final ProviderConfigEmptyPresenter providerConfigEmptyPresenter,
                             final ClientProviderHandlerRegistry providerHandlerRegistry,
                             final Event<NotificationEvent> notification,
                             final Event<ProviderTypeSelectedEvent> providerTypeSelectedEvent,
                             final Event<AddNewRuntimeEvent> addNewRuntimeEvent); @PostConstruct void init(); void onProviderSelected(@Observes final ProviderSelectedEvent event); void onRefreshRuntime(@Observes final RefreshRuntimeEvent event); void refresh(); void onRemoveProvider(); void removeProvider(); void deploy(); IsElement getView();  }### Answer:
@Test public void testDeploy() { prepareRuntimesInfo(); presenter.onProviderSelected(new ProviderSelectedEvent(providerKey)); presenter.deploy(); verify(addNewRuntimeEvent, times(1)).fire(new AddNewRuntimeEvent(provider)); }