ObjectMapper mapper = new ObjectMapper(new YAMLFactory());
try {
UrsusJerseyClientConfiguration ursusJerseyClientConfiguration =
mapper.readValue(open("jerseyClient.yml"), UrsusJerseyClientConfiguration.class);
Client client = new UrsusJerseyClientBuilder().using(ursusJerseyClientConfiguration).build();
Invocation.Builder invocationBuilder = client.target(URI.create("http://localhost:8080/hello"))
.request(MediaType.APPLICATION_JSON_TYPE);
Hello hello = invocationBuilder.get().readEntity(Hello.class);