### Question:
AdminRestClient extends RestClient implements AdminClient { @Override public ImageType getImageType(String name) throws IOException { return getSingle(IMAGE_TYPES_URL_SUFFIX, name, ImageType.class); } AdminRestClient(Supplier<RestClientConnectionConfig> config, CloseableHttpClient httpClient);  AdminRestClient(Supplier<RestClientConnectionConfig> config, CloseableHttpClient httpClient, Gson gson); @Override List<ClusterTemplate> getAllClusterTemplates(); @Override ClusterTemplate getClusterTemplate(String name); @Override void deleteClusterTemplate(String name); @Override List<PartialTemplate> getAllPartialTemplates(); @Override PartialTemplate getPartialTemplate(String name); @Override void deletePartialTemplate(String name); @Override List<Provider> getAllProviders(); @Override Provider getProvider(String name); @Override void deleteProvider(String name); @Override List<Service> getAllServices(); @Override Service getService(String name); @Override void deleteService(String name); @Override List<HardwareType> getAllHardwareTypes(); @Override HardwareType getHardwareType(String name); @Override void deleteHardwareType(String name); @Override List<ImageType> getAllImageTypes(); @Override ImageType getImageType(String name); @Override void deleteImageType(String name);  }### Answer:
@Test public void testGetImageTypeSuccess() throws IOException { ImageType result = adminClient.getImageType(CENTOS_6_IMAGE_TYPE_NAME); assertTrue(result.equals(Entities.ImageTypeExample.CENTOS_6)); }
@Test(expected = UnsupportedOperationException.class) public void testGetImageTypeNotImplemented() throws IOException { clientManager = createClientManager(TestStatusUserId.NOT_IMPLEMENTED_STATUS_USER_ID.getValue()); adminClient = clientManager.getAdminClient(); adminClient.getImageType(CENTOS_6_IMAGE_TYPE_NAME); }