StubConfiguration extends AbstractConfiguration { public boolean persistActualStubConfig() { LOG.debug("Call save stub configuration API."); return setterRequest(SAVE_STUB_CONFIG_URL_POSTFIX); } StubConfiguration(WilmaServiceConfig config);  StubConfiguration(WilmaServiceConfig config, WilmaHttpClient client); JSONObject getStubConfigInformation(); boolean setStubConfigStatus(String groupName, StubConfigStatus status); boolean setStubConfigOrder(String groupName, StubConfigOrder order); boolean dropStubConfig(String groupName); boolean dropAllStubConfig(); boolean persistActualStubConfig();  }
@Test public void shouldUseProperSaveConfigUrl() { ArgumentCaptor<String> url = ArgumentCaptor.forClass(String.class); stubConfiguration.persistActualStubConfig(); verify(client).sendSetterRequest(url.capture()); assertEquals(url.getValue(), SAVE_STUB_URL); }