private SpanChunk createSpanChunk(int spanEventSize) throws InterruptedException {
    AgentInformation agentInformation =
        new AgentInformation(
            "agentId",
            "applicationName",
            0,
            0,
            "machineName",
            "127.0.0.1",
            ServiceType.STAND_ALONE,
            JvmUtils.getSystemProperty(SystemPropertyKey.JAVA_VERSION),
            Version.VERSION);
    SpanChunkFactory spanChunkFactory = new SpanChunkFactory(agentInformation);

    List<SpanEvent> originalSpanEventList = createSpanEventList(spanEventSize);
    SpanChunk spanChunk = spanChunkFactory.create(originalSpanEventList);
    return spanChunk;
  }
  @BeforeClass
  public static void setUp() {
    AgentInformation agentInformation =
        new AgentInformation(
            "agentId",
            "applicationName",
            0,
            0,
            "machineName",
            "127.0.0.1",
            ServiceType.STAND_ALONE,
            JvmUtils.getSystemProperty(SystemPropertyKey.JAVA_VERSION),
            Version.VERSION);

    HeaderTBaseSerializerPoolFactory serializerFactory =
        new HeaderTBaseSerializerPoolFactory(true, 1000, true);
    objectPool = new ObjectPool<HeaderTBaseSerializer>(serializerFactory, 16);

    spanChunkFactory = new SpanChunkFactory(agentInformation);
  }
  private Span createSpan(int spanEventSize) throws InterruptedException {
    AgentInformation agentInformation =
        new AgentInformation(
            "agentId",
            "applicationName",
            0,
            0,
            "machineName",
            "127.0.0.1",
            ServiceType.STAND_ALONE,
            JvmUtils.getSystemProperty(SystemPropertyKey.JAVA_VERSION),
            Version.VERSION);
    SpanChunkFactory spanChunkFactory = new SpanChunkFactory(agentInformation);

    List<SpanEvent> spanEventList = createSpanEventList(spanEventSize);
    Span span = new Span();

    List<TSpanEvent> tSpanEventList = new ArrayList<TSpanEvent>();
    for (SpanEvent spanEvent : spanEventList) {
      tSpanEventList.add(spanEvent);
    }
    span.setSpanEventList(tSpanEventList);
    return span;
  }