@Test
public void testReportProfile() throws Exception {

    String logType = TracerSystemLogEnum.MIDDLEWARE_ERROR.getDefaultLogName();
    CommonTracerManager.reportError(new CommonLogSpan(this.sofaTracer, System
        .currentTimeMillis(), "testReportProfile", SofaTracerSpanContext.rootStart(), null));
    TestUtil.waitForAsyncLog();
    File file = customFileLog(logType);
    assertTrue(file.exists());
    List<String> errorContents = FileUtils.readLines(file);
    assertTrue(errorContents.toString(), errorContents.size() == 1);
}