### Question:
ClusterRestClient extends RestClient implements ClusterClient { @Override public ClusterDetails getCluster(String clusterId) throws IOException { return getSingle(CLUSTERS_URL_SUFFIX, clusterId, ClusterDetails.class); } ClusterRestClient(Supplier<RestClientConnectionConfig> config, CloseableHttpClient httpClient);  ClusterRestClient(Supplier<RestClientConnectionConfig> config, CloseableHttpClient httpClient, Gson gson); @Override List<ClusterSummary> getClusters(); @Override ClusterDetails getCluster(String clusterId); @Override void deleteCluster(String clusterId); @Override void deleteCluster(String clusterId, ClusterOperationRequest clusterOperationRequest); @Override String createCluster(ClusterCreateRequest clusterCreateRequest); @Override ClusterStatusResponse getClusterStatus(String clusterId); @Override JsonObject getClusterConfig(String clusterId); @Override void setClusterConfig(String clusterId, ClusterConfigureRequest clusterConfigureRequest); @Override List<String> getClusterServices(String clusterId); @Override void syncClusterTemplate(String clusterId); @Override void setClusterExpireTime(String clusterId, long expireTime); @Override void startServiceOnCluster(String clusterId, String serviceId); @Override void startServiceOnCluster(String clusterId, String serviceId,
                                    ClusterOperationRequest clusterOperationRequest); @Override void stopServiceOnCluster(String clusterId, String serviceId); @Override void stopServiceOnCluster(String clusterId, String serviceId, ClusterOperationRequest clusterOperationRequest); @Override void restartServiceOnCluster(String clusterId, String serviceId); @Override void restartServiceOnCluster(String clusterId, String serviceId,
                                      ClusterOperationRequest clusterOperationRequest); @Override void addServicesOnCluster(String clusterId, AddServicesRequest addServicesRequest);  }### Answer:
@Test public void testGetClusterNotFound() throws IOException { clientManager = createClientManager(TestStatusUserId.BAD_REQUEST_STATUS_USER_ID.getValue()); clusterClient = clientManager.getClusterClient(); try { clusterClient.getCluster(TEST_CLUSTER_ID); Assert.fail("Expected HttpFailureException"); } catch (HttpFailureException e) { Assert.assertEquals(HttpStatus.SC_BAD_REQUEST, e.getStatusCode()); } }