<BUG>HttpEntity<String> postRequestEntity = new HttpEntity<String>(request.toString(), postRequestHeaders);ResponseEntity<String> postResponse =</BUG><CONTEXT>try {request.put("offerName", URLEncoder.encode(SAMPLE_OFFER_NAME, "UTF-8"));} catch (JSONException | UnsupportedEncodingException e) {}request.put("price", SAMPLE_PRICE.getValue());<extra_id_0>this.template.exchange(generateBaseUrl() + "orderposition/", HttpMethod.POST, postRequestEntity, String.class);OrderPositionEto expectedOrderPositionEto =this.helper.getService().findOrderPosition(this.helper.getNumberOfOrderPositions());</CONTEXT>
HttpEntity<String> postRequestEntity = new HttpEntity<>(request.toString(), postRequestHeaders);ResponseEntity<String> postResponse =