@Test
  public void testDefaultChannelWithBadData() {
    AppInsightsConfigurationBuilder mockParser = createMockParserWithDefaultChannel(true);
    ApplicationInsightsXmlConfiguration appConf = mockParser.build(null);
    appConf.setInstrumentationKey(MOCK_IKEY);
    ChannelXmlElement channelXmlElement = appConf.getChannel();
    channelXmlElement.setEndpointAddress(NON_VALID_URL);
    channelXmlElement.setDeveloperMode(true);

    TelemetryConfiguration mockConfiguration = new TelemetryConfiguration();

    initializeWithFactory(mockParser, mockConfiguration);

    assertEquals(mockConfiguration.getChannel().isDeveloperMode(), false);
  }