GeoServerInfo global = getGeoServer().getGlobal();
global.getSettings().setProxyBaseUrl("src/test/resources/geoserver");
getGeoServer().save(global);
LayerInfo layer = getCatalog().getLayerByName(MockData.POINTS.getLocalPart());
MetadataLinkInfo mdlink = getCatalog().getFactory().createMetadataLink();
mdlink.setMetadataType("FGDC");
mdlink.setContent("http://geoserver.org");
mdlink.setType("text/xml");
ResourceInfo resource = layer.getResource();
resource.getMetadataLinks().add(mdlink);
getCatalog().save(resource);
Catalog catalog = getCatalog();