resource.setLatLonBoundingBox(new ReferencedEnvelope(-180, -90, 0, 0,
DefaultGeographicCRS.WGS84));
resource.setNativeBoundingBox(new ReferencedEnvelope(-180, -90, 0, 0,
DefaultGeographicCRS.WGS84));
resource.setSRS("EPSG:4326");
resource.setKeywords((List) Arrays.asList(new Keyword("kwd1"), new Keyword("kwd2")));
layerInfo = new LayerInfoImpl();
layerInfo.setId(layerInfoId);
layerInfo.setResource(resource);
layerInfo.setEnabled(true);