How to unit-test a java function which take sample JSONObject as input?
stackoverflow.com