HttpGet get = new HttpGet("http://localhost:" + PORT1 + "/customerservice/customers/");
get.addHeader("Accept", "application/xml");
CloseableHttpClient httpclient = HttpClientBuilder.create().build();
try {
HttpResponse response = httpclient.execute(get);
assertEquals(200, response.getStatusLine().getStatusCode());
String customers = EntityUtils.toString(response.getEntity());
String before = ObjectHelper.before(customers, "</id><name>" + name + "</name></Customer>");
String answer = before.substring(before.lastIndexOf(">") + 1, before.length());
return answer;