KeyFactory keyFactory = KeyFactory.getInstance("RSA");
RSAPrivateKey priv = (RSAPrivateKey)keyFactory.generatePrivate(new PKCS8EncodedKeySpec(Util.fromHexString(privateKey)));
byte[] cipherText = Base64.decode(data.toCharArray());
InputStreamReader r = new InputStreamReader(new GZIPInputStream(
new CombinedCipherInputStream(new ByteArrayInputStream(cipherText),priv,"AES")), "UTF-8");
JSONObject o = JSONObject.fromObject(IOUtils.toString(r));
System.out.println(o);
assertEquals(1,o.getInt("stat"));
}