assertEquals(1, list.size());
OperationContext ctx = new OperationContext(session);
assertNotNull(ctx);
OperationChain chain = new OperationChain("fakeChain");
OperationParameters oParams = new OperationParameters(
GetSocialWorkspaceMembers.ID);
oParams.set("pattern", "testU%");
oParams.set("page", 0);
oParams.set("pageSize", 5);
oParams.set("contextPath", "/testSocialWorkspace");
chain.add(oParams);
Blob result = (Blob) automationService.run(ctx, chain);
JSONObject o = JSONObject.fromObject(result.getString());
JSONArray array = (JSONArray) o.get("users");
assertEquals(1, array.size());