How to unit-test a java function which take sample JSONObject as input? | Hacker News Reader