server.enqueue(addCommonHeaders(new MockResponse().setBody(stringFromResource("/admin_extensions.json"))));
server.enqueue(addCommonHeaders(new MockResponse().setResponseCode(200).setBody(
stringFromResource("/role_create_response.json"))));
try {
KeystoneApi keystoneApi = api(server.getUrl("/").toString(), "openstack-keystone");
RoleAdminApi roleAdminApi = keystoneApi.getRoleAdminApi().get();
Role role = roleAdminApi.get("r1000");
assertEquals(server.getRequestCount(), 3);
assertAuthentication(server);
assertExtensions(server);