/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package org.apache.skywalking.apm.agent.core.context;

import java.util.ArrayList;
import java.util.List;
import org.apache.skywalking.apm.agent.core.context.ids.DistributedTraceId;
import org.apache.skywalking.apm.agent.core.context.ids.NewDistributedTraceId;

public enum MockContextSnapshot {
    INSTANCE;

    private ContextSnapshot contextSnapshot;

    MockContextSnapshot() {
        List<DistributedTraceId> distributedTraceIds = new ArrayList<DistributedTraceId>();
        distributedTraceIds.add(new NewDistributedTraceId());

        contextSnapshot = new ContextSnapshot(
            "1, 2, 3", 1, new NewDistributedTraceId(), "/for-test-entryOperationName", new CorrelationContext(), new ExtensionContext());
    }

    public ContextSnapshot mockContextSnapshot() {
        return contextSnapshot;
    }
}

@@ -858,135 +858,8 @@
 t;%0A%0A
-import java.util.ArrayList;%0Aimport java.util.List;%0Aimport org.apache.skywalking.apm.agent.core.context.ids.DistributedTraceId;%0A
 impo
@@ -1061,163 +1061,8 @@
 ) %7B%0A
-        List%3CDistributedTraceId%3E distributedTraceIds = new ArrayList%3CDistributedTraceId%3E();%0A        distributedTraceIds.add(new NewDistributedTraceId());%0A%0A
     
@@ -1130,11 +1130,35 @@
  3%22,
- 1,
+%0A            1,%0A           
  new
@@ -1182,16 +1182,28 @@
 aceId(),
+%0A           
  %22/for-t
@@ -1226,16 +1226,28 @@
 onName%22,
+%0A           
  new Cor
@@ -1264,16 +1264,28 @@
 ntext(),
+%0A           
  new Ext
@@ -1299,16 +1299,25 @@
 ontext()
+%0A        
 );%0A    %7D

remove dead code (#5611)