### Question:
ClientContext { public ClientContext(Context context) { if (context == null) { throw new IllegalArgumentException("Context can't be null"); } json = new JSONObject(); try { json.put("client", getClientInfo(context)) .put("env", getDeviceInfo(context)); } catch (final JSONException e) { throw new AmazonClientException("Failed to build client context", e); } } ClientContext(Context context); static String getInstallationId(Context context); void putCustomContext(Map<String, String> map); void putServiceContext(String service, Map<String, String> map); String toBase64String();  }### Answer:
@Test public void testClientContext() throws JSONException { ClientContext clientContext = new ClientContext(activity); String base64 = clientContext.toBase64String(); assertNotNull(base64); String jsonString = new String(Base64.decode(base64), StringUtils.UTF8); JSONObject json = new JSONObject(jsonString); assertNotNull("has client info", json.getJSONObject("client")); assertNotNull("has device info", json.getJSONObject("env")); }