public static LayerInfoImpl mockLayer(String resourceName, String[] extraStyles, Type type) {
StoreInfo store = new DataStoreInfoImpl(null);
store.setName(resourceName + "-store");
store.setEnabled(true);
NamespaceInfoImpl ns = new NamespaceInfoImpl();
ns.setPrefix("test");
ns.setURI("http://example.com");
FeatureTypeInfoImpl resource = new FeatureTypeInfoImpl(null);
resource.setName(resourceName);
resource.setNamespace(ns);
ReferencedEnvelope box = new ReferencedEnvelope(-180, 0, 0, 90, DefaultGeographicCRS.WGS84);