{
client = mock(HostXmlRpcClient.class);
httpClient = mock(HostHttpClient.class);
requestContext = mock(RequestContext.class);
confluencePageClient = (ConfluencePageClient) Proxy.newProxyInstance(
new ChainingClassLoader(getClass().getClassLoader()),
new Class[]{ConfluencePageClient.class},
new ClientInvocationHandler("confluence2", client, permissions, "foo", httpClient,
requestContext));
confluenceLabelClient = (ConfluenceLabelClient) Proxy.newProxyInstance(
new ChainingClassLoader(getClass().getClassLoader()),
new Class[]{ConfluenceLabelClient.class},
new ClientInvocationHandler("confluence2", client, permissions, "foo", httpClient,
requestContext));
confluenceSpaceClient = (ConfluenceSpaceClient) Proxy.newProxyInstance(
new ChainingClassLoader(getClass().getClassLoader()),
new Class[]{ConfluenceSpaceClient.class},
new ClientInvocationHandler("confluence2", client, permissions, "foo", httpClient,
requestContext));
}