responseWithKeystoneAccess,
authenticatedGET().endpoint(endpoint).build(),
HttpResponse.builder().statusCode(200).payload(payloadFromResource("/user_get_withhost.json")).build()
).getUserApiForZoneAndInstance("RegionOne", "instanceId-1234-5678");
User user = api.get("example.user", "192.168.64.64");
assertEquals(user.getName(), "example.user");
assertEquals(user.getHost(), "192.168.64.64");
assertEquals(user.getIdentifier(), "example.user@192.168.64.64");
assertEquals(user.getDatabases().size(), 2);
assertEquals(user.getDatabases().iterator().next(), "databaseA");
}