### Question:
ProviderPresenter { public void refresh() { load(provider.getKey()); } @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 testRefreshWithItems() { prepareRefreshWithItems(); presenter.refresh(); verify(providerStatusPresenter, times(2)).setupItems(runtimeItems); verify(view, times(2)).setStatus(providerStatusPresenterView); verifyRuntimesInfoLoaded(2); }
@Test public void testRefreshWithNoItems() { prepareRefreshWithNoItems(); presenter.refresh(); verifyUILoadedWithNoItems(2); verifyRuntimesInfoLoaded(2); }