ClientConfig config = new ClientConfig();
config.property(JettyClientProperties.SSL_CONFIG, sslConfig);
config.connectorProvider(new JettyConnectorProvider());
Client client = ClientBuilder.newClient(config);
// client basic auth demonstration
client.register(HttpAuthenticationFeature.basic("user", "password"));
System.out.println("Client: GET " + Server.BASE_URI);
WebTarget target = client.target(Server.BASE_URI);
target.register(new LoggingFilter());
final Response response = target.path("/").request().get(Response.class);
assertEquals(200, response.getStatus());
client.close();
}