HttpRequest request = HttpRequest.builder().method("GET").endpoint(URI.create(endpoint)).build();
request = request.toBuilder().replaceHeader(HttpHeaders.AUTHORIZATION, basic(identity, credential)).build();
// Execute the request and read the generated token
HttpResponse response = context.utils().http().invoke(request);
assertEquals(response.getStatusCode(), 200);
token = readAuthenticationToken(response);
assertNotNull(token);