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

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