StoreInfo s1 = createMock(StoreInfo.class);
StoreInfo s2 = createMock(StoreInfo.class);
expect(catalog.getStoresByWorkspace(ws, StoreInfo.class)).andReturn(Arrays.asList(s1, s2)).anyTimes();
ns.accept((CatalogVisitor)anyObject());
expectLastCall();
s1.accept((CatalogVisitor)anyObject());
expectLastCall();