@@ -0,0 +1,1125 @@
+package com.samourai.xmanager.client;%0A%0Aimport android.content.Context;%0Aimport android.test.mock.MockContext;%0A%0Aimport com.samourai.http.client.AndroidHttpClient;%0Aimport com.samourai.http.client.IHttpClient;%0Aimport com.samourai.wallet.tor.TorManager;%0Aimport com.samourai.wallet.util.WebUtil;%0Aimport com.samourai.xmanager.protocol.XManagerEnv;%0Aimport com.samourai.xmanager.protocol.XManagerService;%0Aimport com.samourai.xmanager.protocol.rest.AddressIndexResponse;%0A%0Apublic class XManagerExample %7B%0A%0A  protected Context context = new MockContext();%0A%0A  public XManagerExample() throws Exception %7B%0A    TorManager torManager = TorManager.getInstance(getContext());%0A    IHttpClient httpClient = new AndroidHttpClient(WebUtil.getInstance(getContext()), torManager);%0A%0A    // instanciation%0A    boolean testnet = true;%0A    boolean onion = false;%0A    XManagerClient xManagerClient = new XManagerClient(testnet, onion, httpClient);%0A%0A    // get next address (or default when server unavailable)%0A    String address = xManagerClient.getAddressOrDefault(XManagerService.RICOCHET);%0A%0A  %7D%0A%0A  private Context getContext() %7B%0A    return context;%0A  %7D%0A%7D

add XManagerExample