### Question:
WF10ProviderConfigPresenter extends AbstractHasContentChangeHandlers implements ProviderConfigurationForm { @Override public ProviderConfiguration buildProviderConfiguration() { final Map<String, Object> values = new HashMap<>(); values.put(HOST, getHost()); values.put(PORT, getPort()); values.put(MANAGEMENT_PORT, getManagementPort()); values.put(USER, getUsername()); values.put(PASSWORD, getPassword()); return new ProviderConfiguration(getProviderName(), values); } @Inject  WF10ProviderConfigPresenter(final View view,
                                       final Caller<WildflyClientService> wildflyClientService); @PostConstruct void init(); View getView(); @Override ProviderConfiguration buildProviderConfiguration(); @Override void clear(); @Override void load(final Provider provider); String getProviderName(); String getHost(); String getPort(); String getManagementPort(); 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.getHost()).thenReturn(HOST_VALUE); when(view.getPort()).thenReturn(PORT_VALUE); when(view.getManagementPort()).thenReturn(MANAGEMENT_PORT_VALUE); when(view.getUsername()).thenReturn(USER_VALUE); when(view.getPassword()).thenReturn(PASSWORD_VALUE); ProviderConfiguration configuration = presenter.buildProviderConfiguration(); assertEquals(PROVIDER_NAME_VALUE, presenter.getProviderName()); assertEquals(HOST_VALUE, configuration.getValues().get(HOST)); assertEquals(PORT_VALUE, configuration.getValues().get(PORT)); assertEquals(MANAGEMENT_PORT_VALUE, configuration.getValues().get(MANAGEMENT_PORT)); assertEquals(USER_VALUE, configuration.getValues().get(USER)); assertEquals(PASSWORD_VALUE, configuration.getValues().get(PASSWORD)); }