SocialProviderOperation.ID);
oParams.set("query", "select * from Article where ecm:isProxy = 0");
oParams.set("contextPath", "/sws2");
chain.add(oParams);
DocumentModelList result = (DocumentModelList) service.run(ctx, chain);
assertEquals(2, result.size());
// remove current user from admins of sws2
DocumentModel sws = session.getDocument(new PathRef("/sws2"));
SocialWorkspace socialWorkspace = toSocialWorkspace(sws);
oParams.set("query", "select * from Article where ecm:isProxy = 1");
result = (DocumentModelList) service.run(ctx, chain);
assertEquals(1, result.size()); // return only the public article
}