config.setShowStackTrace(false);
createServer(new ErrorServlet());
server.start();
try (HttpClient client = new JettyHttpClient()) {
StringResponse response = client.execute(prepareGet().setUri(httpServerInfo.getHttpUri()).build(), createStringResponseHandler());
assertEquals(response.getStatusCode(), 500);
assertTrue(!response.getBody().contains("ErrorServlet.java"));
}
}