[java] covering json rest api