### Question:
CompositeMetric implements ClusterMetric { @Override public double min() { return clusterMetrics.stream().map(ClusterMetric::min).min(Double::compareTo).orElse(0d); } CompositeMetric(ClusterMetric ... clusterMetric);  CompositeMetric(ClusterMetric clusterMetric, Iterable<ClusterMetric> clusterMetrics);  CompositeMetric(Iterable<ClusterMetric> clusterMetrics); @Override double value(); @Override long count(); @Override double min(); @Override double max(); @Override double mean(); @Override String toString();  }### Answer:
@Test public void min() { assertEquals(3, compositeMetric.min(), 0); }