### Question:
OpenShiftProviderConfigPresenter extends AbstractHasContentChangeHandlers implements ProviderConfigurationForm { @Override public ProviderConfiguration buildProviderConfiguration() { final Map<String, Object> values = new HashMap<>(); values.put(MASTER_URL, getMasterURL()); values.put(USER, getUsername()); values.put(PASSWORD, getPassword()); return new ProviderConfiguration(getProviderName(), values); } @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 testBuildProviderConfiguration() { when(view.getProviderName()).thenReturn(PROVIDER_NAME_VALUE); when(view.getMasterURL()).thenReturn(MASTER_URL_VALUE); when(view.getUsername()).thenReturn(USER_VALUE); when(view.getPassword()).thenReturn(PASSWORD_VALUE); ProviderConfiguration configuration = presenter.buildProviderConfiguration(); assertEquals(PROVIDER_NAME_VALUE, presenter.getProviderName()); assertEquals(MASTER_URL_VALUE, configuration.getValues().get(MASTER_URL)); assertEquals(USER_VALUE, configuration.getValues().get(USER)); assertEquals(PASSWORD_VALUE, configuration.getValues().get(PASSWORD)); }