@Test
public void testAddReporter() throws Exception {

    SofaTracerCompositeDigestReporterImpl sofaTracerCompositeDigestReporter = new SofaTracerCompositeDigestReporterImpl();
    assertEquals(Reporter.COMPOSITE_REPORTER,
        sofaTracerCompositeDigestReporter.getReporterType());
    Reporter reporterMock1 = mock(Reporter.class);
    when(reporterMock1.getReporterType()).thenReturn("mock1");
    Reporter reporterMock2 = mock(Reporter.class);
    when(reporterMock2.getReporterType()).thenReturn("mock2");
    sofaTracerCompositeDigestReporter.addReporter(reporterMock1);
    sofaTracerCompositeDigestReporter.addReporter(reporterMock2);
    SofaTracerSpan span = mock(SofaTracerSpan.class);
    sofaTracerCompositeDigestReporter.report(span);
    verify(reporterMock1, times(1)).report(span);
    verify(reporterMock2, times(1)).report(span);
}