### Question:
AdminRestClient extends RestClient implements AdminClient { @Override public void deletePartialTemplate(String name) throws IOException { delete(PARTIAL_TEMPLATES_URL_SUFFIX, name); } 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 testDeletePartialTemplateSuccess() throws IOException { adminClient.deletePartialTemplate(TEST_PARTIAL1_NAME); }
@Test public void testDeletePartialTemplateNotFound() throws IOException { clientManager = createClientManager(TestStatusUserId.NOT_FOUND_STATUS_USER_ID.getValue()); adminClient = clientManager.getAdminClient(); try { adminClient.deletePartialTemplate(TEST_PARTIAL1_NAME); Assert.fail("Expected HttpFailureException"); } catch (HttpFailureException e) { Assert.assertEquals(HttpStatus.SC_NOT_FOUND, e.getStatusCode()); } }