// Path: telemetry-lib/src/main/java/com/yammer/telemetry/tracing/Sampling.java
// public abstract class Sampling {
//     public static final Sampling ON = new SamplingOn();
//     public static final Sampling OFF = new SamplingOff();
// 
//     public abstract boolean trace();
// 
//     public static Sampling valueOf(String samplerName) {
//         if ("off".equalsIgnoreCase(samplerName)) return OFF;
//         if ("on".equalsIgnoreCase(samplerName)) return ON;
//         return null;
//     }
// 
//     private static class SamplingOff extends Sampling {
//         @Override
//         public boolean trace() {
//             return false;
//         }
//     }
// 
//     private static class SamplingOn extends Sampling {
//         @Override
//         public boolean trace() {
//             return true;
//         }
//     }
// }


import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory;
import com.google.common.collect.ImmutableList;
import com.yammer.dropwizard.config.ConfigurationException;
import com.yammer.dropwizard.validation.Validator;
import com.yammer.telemetry.tracing.Sampling;
import org.junit.Test;
import java.io.File;
import java.io.IOException;
import java.net.URL;
import static org.junit.Assert.*;
package com.yammer.telemetry.agent;




public class TelemetryConfigurationTest {
    @Test
    public void testConstructionDefaults() {
        TelemetryConfiguration configuration = new TelemetryConfiguration();

        assertEquals(ImmutableList.<String>of(), configuration.getInstruments());
        assertEquals("unknown", configuration.getAnnotations().getService());
// Path: telemetry-lib/src/main/java/com/yammer/telemetry/tracing/Sampling.java
// public abstract class Sampling {
//     public static final Sampling ON = new SamplingOn();
//     public static final Sampling OFF = new SamplingOff();
// 
//     public abstract boolean trace();
// 
//     public static Sampling valueOf(String samplerName) {
//         if ("off".equalsIgnoreCase(samplerName)) return OFF;
//         if ("on".equalsIgnoreCase(samplerName)) return ON;
//         return null;
//     }
// 
//     private static class SamplingOff extends Sampling {
//         @Override
//         public boolean trace() {
//             return false;
//         }
//     }
// 
//     private static class SamplingOn extends Sampling {
//         @Override
//         public boolean trace() {
//             return true;
//         }
//     }
// }


// Path: telemetry-agent/src/test/java/com/yammer/telemetry/agent/TelemetryConfigurationTest.java
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory;
import com.google.common.collect.ImmutableList;
import com.yammer.dropwizard.config.ConfigurationException;
import com.yammer.dropwizard.validation.Validator;
import com.yammer.telemetry.tracing.Sampling;
import org.junit.Test;
import java.io.File;
import java.io.IOException;
import java.net.URL;
import static org.junit.Assert.*;

package com.yammer.telemetry.agent;




public class TelemetryConfigurationTest {
    @Test
    public void testConstructionDefaults() {
        TelemetryConfiguration configuration = new TelemetryConfiguration();

        assertEquals(ImmutableList.<String>of(), configuration.getInstruments());
        assertEquals("unknown", configuration.getAnnotations().getService());
        assertEquals(Sampling.ON, configuration.getSampler());