@Override
    public void collectException(MetricDescriptor descriptor, Exception e) {
        for (MetricsCollector collector : collectors) {
            collector.collectException(descriptor, e);
        }
    }
@Test
    public void testCollectException() {
        Exception ex = new Exception();
        compositeCollector.collectException(metricsDescriptor, ex);

        verify(collectorMock1).collectException(metricsDescriptor, ex);
        verify(collectorMock2).collectException(metricsDescriptor, ex);
    }