}
public void testDeleteAllOneByOne() throws Exception {
for(WorkspaceInfo ws : getCatalog().getWorkspaces()) {
// empty the workspace otherwise we can't remove it
CascadeDeleteVisitor visitor = new CascadeDeleteVisitor(getCatalog());
for(StoreInfo store : getCatalog().getStoresByWorkspace(ws, StoreInfo.class)) {
store.accept(visitor);
}
// actually go and remove the store