@@ -0,0 +1,1743 @@
+package com.xpn.xwiki.it.xmlrpc;%0A%0Aimport java.net.URL;%0Aimport java.util.Map;%0A%0Aimport junit.framework.TestCase;%0A%0Aimport org.apache.xmlrpc.client.XmlRpcClient;%0Aimport org.apache.xmlrpc.client.XmlRpcClientConfigImpl;%0Aimport org.apache.xmlrpc.client.util.ClientFactory;%0Aimport com.xpn.xwiki.xmlrpc.ConfluenceRpcInterface;%0Aimport com.xpn.xwiki.xmlrpc.PageSummary;%0Aimport com.xpn.xwiki.xmlrpc.SpaceSummary;%0A%0Apublic class AnonymousAccessTest extends TestCase%0A%7B%0A%09private ConfluenceRpcInterface xwikiRpc;%0A%0A%09public void setUp() throws Exception%0A    %7B%0A        super.setUp();%0A    %0A        XmlRpcClient rpcClient = new XmlRpcClient();%0A        XmlRpcClientConfigImpl clientConfig = new XmlRpcClientConfigImpl();%0A        clientConfig.setServerURL(new URL(%22http://127.0.0.1:8080/xwiki/xmlrpc%22));%0A        rpcClient.setConfig(clientConfig);%0A    %0A        ClientFactory factory = new ClientFactory(rpcClient);%0A        xwikiRpc = (ConfluenceRpcInterface) factory.newInstance(ConfluenceRpcInterface.class);%0A%0A        // no login to get a token, use %22%22 as a token%0A    %7D%0A%0A    public void testReadAllPages() throws Exception%0A    %7B%0A        Object%5B%5D spaceObjs = getXWikiRpc().getSpaces(%22%22);%0A        for (int i = 0; i %3C spaceObjs.length; i++) %7B%0A        %09SpaceSummary spaceSummary = new SpaceSummary((Map)spaceObjs%5Bi%5D);%0A            String key = spaceSummary.getKey();%0A            Object%5B%5D pages = getXWikiRpc().getPages(%22%22, key);%0A            for (int j = 0; j %3C pages.length; j++) %7B%0A                PageSummary pageSummary = new PageSummary((Map)pages%5Bj%5D);%0A                String id = pageSummary.getId();%0A                getXWikiRpc().getPage(%22%22, id);                %0A            %7D%0A        %7D%0A    %7D%0A%0A%09private ConfluenceRpcInterface getXWikiRpc()%0A%09%7B%0A%09%09return xwikiRpc;%0A%09%7D%0A%7D%0A

Test for XWIKI-1558 (anonymous access via XMLRPC).