### Question:
OpenShiftProviderConfigPresenter extends AbstractHasContentChangeHandlers implements ProviderConfigurationForm { @Override public void load(final Provider provider) { clear(); view.setProviderName(provider.getKey().getId()); view.setMasterURL(getStringValue(provider.getConfiguration().getValues(), MASTER_URL)); view.setUsername(getStringValue(provider.getConfiguration().getValues(), USER)); view.setPassword(getStringValue(provider.getConfiguration().getValues(), PASSWORD)); } @Inject  OpenShiftProviderConfigPresenter(final View view); @PostConstruct void init(); View getView(); @Override ProviderConfiguration buildProviderConfiguration(); @Override void clear(); @Override void load(final Provider provider); String getProviderName(); String getMasterURL(); String getUsername(); String getPassword(); void isValid(final Callback<Boolean> callback); @Override String getWizardTitle(); @Override void disable();  }### Answer:
@Test public void testLoad() { Map<String, Object> values = new HashMap<>(); values.put(MASTER_URL, MASTER_URL_VALUE); values.put(USER, USER_VALUE); values.put(PASSWORD, PASSWORD_VALUE); Provider provider = mock(Provider.class); ProviderKey providerKey = mock(ProviderKey.class); ProviderConfiguration configuration = mock(ProviderConfiguration.class); when(provider.getKey()).thenReturn(providerKey); when(providerKey.getId()).thenReturn(PROVIDER_NAME_VALUE); when(provider.getConfiguration()).thenReturn(configuration); when(configuration.getValues()).thenReturn(values); presenter.load(provider); verify(view, times(1)).clear(); verify(view, times(1)).setProviderName(PROVIDER_NAME_VALUE); verify(view, times(1)).setMasterURL(MASTER_URL_VALUE); verify(view, times(1)).setUsername(USER_VALUE); verify(view, times(1)).setPassword(PASSWORD_VALUE); }