This edit
request need an access_token that was given back when I login. But when I use code below, it didn't work.
One more issue is assertNotEquals(jpath.getInt("code"), 1000);
, but it's not addressing problem in this question.
If my answer works for you, please accept it as correct answer.