.setUrl("http://user:password@localhost:1234/some/path?query=foo#fragment")
.build();
final APIException apiException = new APIException(request, (Response) null);
final String message = apiException.getMessage();
assertThat(message, not(new Contains(":password")));
assertThat(message, new Contains("user@"));
}