public void testProxyBaseURL() throws Exception {
GeoServer gs = getGeoServer();
try {
GeoServerInfo info = gs.getGlobal();
info.setProxyBaseUrl("http://myhost:9999/gs");
gs.save(info);
MapLayer mapLayer = createMapLayer(MockData.POINTS, "Bridge");
FeatureSource<SimpleFeatureType, SimpleFeature> featureSource;
featureSource = (FeatureSource<SimpleFeatureType, SimpleFeature>) mapLayer
.getFeatureSource();