public void testCatalogFilteredGetLayers() throws Exception {
CatalogFilterAccessManager filter = new CatalogFilterAccessManager();
// make a catalog that uses our layers
Catalog withLayers = new AbstractCatalogDecorator(catalog) {
@SuppressWarnings("unchecked")
@Override
public <T extends CatalogInfo> CloseableIterator<T> list(Class<T> of, Filter filter, Integer offset, Integer count, SortBy sortBy) {
return new CloseableIteratorAdapter<T>((Iterator<T>) layers.iterator());