### Question:
ClusterService { public void deleteCluster(String clusterId) { if (!clusters.containsKey(clusterId)) { throw new EntityNotFoundException( "Cluster with the specified ID not found: ID = " + clusterId); } clusters.remove(clusterId); } @Inject  ClusterService(StormEngine stormEngine, StreamflowConfig streamflowConfig); Collection<Cluster> listClusters(); Cluster addCluster(Cluster cluster); Cluster getCluster(String clusterId); void deleteCluster(String clusterId); void updateCluster(String clusterId, Cluster cluster); ClusterSummary getClusterSummary(String clusterId);  }### Answer:
@Test public void deleteClusterWithInvalidId() { String clusterId = "invalid-id"; expectedEx.expect(EntityNotFoundException.class); expectedEx.expectMessage("Cluster with the specified ID not found: ID = " + clusterId); clusterService.deleteCluster(clusterId); }