public void testSetBodyRepresentation() throws Exception {
HttpGet get = new HttpGet("http://0.0.0.0:" + portNum + "/images/123");
CloseableHttpClient httpclient = HttpClientBuilder.create().build();
InputStream is = null;
try {
HttpResponse response = httpclient.execute(get);
assertEquals(200, response.getStatusLine().getStatusCode());
assertEquals("image/png", response.getEntity().getContentType().getValue());
is = response.getEntity().getContent();
assertEquals("Get wrong available size", 10, response.getEntity().getContentLength());
byte[] buffer = new byte[10];