public void testProxyBaseURL() throws Exception {
GeoServer gs = getGeoServer();
try {
GeoServerInfo info = gs.getGlobal();
info.getSettings().setProxyBaseUrl("http://myhost:9999/gs");
gs.save(info);
final String requestUrl = "wms/kml?layers=" + getLayerId(MockData.BRIDGES)
+ "&styles=Bridge&mode=download";
Document dom = getAsDOM(requestUrl);