private static StringEntity jsonStringEntity(String json) {
   return new StringEntity(json, UTF_8.name());
 }
 public void setBody(final String body) {
   this.body = (body != null) ? body.getBytes(Charset.forName(UTF_8.name())) : null;
   isBinaryBody = false;
 }
 public ResponseDefinition(final int statusCode, final String bodyContent) {
   this.status = statusCode;
   this.body = (bodyContent == null) ? null : bodyContent.getBytes(Charset.forName(UTF_8.name()));
 }
 public String getBody() {
   return (!isBinaryBody && body != null) ? new String(body, Charset.forName(UTF_8.name())) : null;
 }