super.setUp();
baseURL = "http://www.example.com:1234/jsunit";
}
public void testSimple() throws Exception {
ServerConfiguration configuration = new ServerConfiguration(new DummyConfigurationSource());
MockRemoteServerHitter mockHitter = new MockRemoteServerHitter();
mockHitter.urlToDocument.put(baseURL + "/config", new Document(configuration.asXml()));
RemoteConfigurationSource remoteSource = new RemoteConfigurationSource(mockHitter, baseURL);
assertTrue(remoteSource.isInitialized());
ServerConfiguration remoteConfiguration = new ServerConfiguration(remoteSource);
assertEquals(XmlUtility.asString(configuration.asXml()),
XmlUtility.asString(remoteConfiguration.asXml())
);
}