server.enqueue(addCommonHeaders(new MockResponse().setBody(stringFromResource("/access_version_uids.json"))));
server.enqueue(addCommonHeaders(new MockResponse().setBody(stringFromResource("/admin_extensions.json"))));
server.enqueue(addCommonHeaders(new MockResponse().setResponseCode(404)));
try {
KeystoneApi keystoneApi = api(server.getUrl("/").toString(), "openstack-keystone");
ServiceAdminApi serviceAdminApi = keystoneApi.getServiceAdminApi().get();
Service service = serviceAdminApi.get("s1000");
assertNull(service);
assertEquals(server.getRequestCount(), 3);