buildings.getStyles().add(style);
catalog.save(buildings);
buildings = catalog.getLayerByName(getLayerId(MockData.BUILDINGS));
assertTrue(buildings.getStyles().contains(style));
style.accept(visitor);
// test style reset
assertEquals(style.getId(), visitor.getObjects(StyleInfo.class, ModificationType.DELETE).get(0).getId());
String lakesId = catalog.getLayerByName(layerName).getId();
assertEquals(lakesId, visitor.getObjects(LayerInfo.class, ModificationType.STYLE_RESET).get(0).getId());