### Question:
ClientContext { static JSONObject getDeviceInfo(Context context) throws JSONException { final JSONObject env = new JSONObject() .put("platform", "Android") .put("model", Build.MODEL) .put("make", Build.MANUFACTURER) .put("platform_version", Build.VERSION.RELEASE) .put("locale", Locale.getDefault().toString()); return env; } 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 testDeviceInfo() throws JSONException { ReflectionHelpers.setStaticField(Build.class, "MANUFACTURER", "Samsung"); ReflectionHelpers.setStaticField(Build.class, "MODEL", "HTC"); ReflectionHelpers.setStaticField(Build.VERSION.class, "RELEASE", "2.3.3"); JSONObject device = ClientContext.getDeviceInfo(activity); assertEquals("platform is hard coded Android", device.getString("platform"), "Android"); assertEquals("model", device.getString("model"), "HTC"); assertEquals("make", device.getString("make"), "Samsung"); assertEquals("platform_version", device.getString("platform_version"), "2.3.3"); assertEquals("locale", device.getString("locale"), Locale.getDefault().toString()); }