@Test
  public void testDefaultChannelWithData() {
    AppInsightsConfigurationBuilder mockParser = createMockParserWithDefaultChannel(true);
    ApplicationInsightsXmlConfiguration appConf = mockParser.build(null);
    appConf.setInstrumentationKey(MOCK_IKEY);
    appConf.getChannel().setDeveloperMode(true);

    TelemetryConfiguration mockConfiguration = new TelemetryConfiguration();

    initializeWithFactory(mockParser, mockConfiguration);

    assertEquals(mockConfiguration.getChannel().isDeveloperMode(), true);
  }
  @Test
  public void testPerformanceModules() {
    AppInsightsConfigurationBuilder mockParser = createMockParser(true, true, true);
    ApplicationInsightsXmlConfiguration appConf = mockParser.build(null);
    appConf.setInstrumentationKey(MOCK_IKEY);
    appConf.getChannel().setDeveloperMode(true);

    TelemetryConfigurationFactory.INSTANCE.setPerformanceCountersSection(
        "com.microsoft.applicationinsights.internal.config");
    TelemetryConfiguration mockConfiguration = new TelemetryConfiguration();

    initializeWithFactory(mockParser, mockConfiguration);

    assertEquals(mockConfiguration.getTelemetryModules().size(), 1);
    assertTrue(mockConfiguration.getTelemetryModules().get(0) instanceof MockPerformanceModule);
    assertTrue(
        ((MockPerformanceModule) mockConfiguration.getTelemetryModules().get(0))
            .initializeWasCalled);
    assertTrue(
        ((MockPerformanceModule) mockConfiguration.getTelemetryModules().get(0))
            .addConfigurationDataWasCalled);
  }