public void testOnlyPublicDocumentsParameters() throws Exception {
OperationContext ctx = new OperationContext(session);
assertNotNull(ctx);
OperationChain chain = new OperationChain("fakeChain");
OperationParameters oParams = new OperationParameters(
SocialProviderOperation.ID);
oParams.set("query", "select * from Article");
oParams.set("contextPath", "/sws2");
oParams.set("onlyPublicDocuments", "true");
chain.add(oParams);
DocumentModelList result = (DocumentModelList) service.run(ctx, chain);
assertEquals(1, result.size());
oParams.set("onlyPublicDocuments", "false");
result = (DocumentModelList) service.run(ctx, chain);
assertEquals(3, result.size());
oParams.set("onlyPublicDocuments", "wrong string for a boolean");
result = (DocumentModelList) service.run(ctx, chain);
assertEquals(3, result.size());
}