### Question:
ItemsAPI { public static Map<String, Object> onsale_get(ItemsOnsaleGetRequest request, String sessionKey) throws ApiException, ValidationException { checkOnsaleGetRequest(request); if (StringUtils.isBlank(request.getFields())) { request.setFields("approve_status,num_iid,title,nick,type,cid,pic_url,num,props,valid_thru,list_time,price,has_discount,has_invoice,has_warranty,has_showcase,modified,delist_time,postage_id,seller_cids,outer_id"); } ItemsOnsaleGetResponse response = APICaller.call(request, sessionKey); APICaller.resolveResponseException(response); Map<String, Object> result = new HashMap<String, Object>(); result.put("total_results", response.getTotalResults()); result.put("items", response.getItems()); return result; }  static Map<String, Object> onsale_get(ItemsOnsaleGetRequest request, String sessionKey); static List<Item> list_get(String fields, String num_iids, String sessionKey);  }### Answer:
@Test public void onsale_getTest() throws ApiException, ValidationException { Map<String, Object> result = ItemsAPI.onsale_get(new ItemsOnsaleGetRequest(), TAOBAO_SESSION_KEY); logger.debug("taobao.items.onsale.get:{}", APICaller.jsonBinder.toJson(result)); }