/**
   * Tests when requesting a raw UDP channel, we do not get candidates with 127.0.0.1 IPs.
   *
   * <p>Test fails only if the machine has only a loopback interface, which is very unlikely.
   */
  @Test
  public void testNo_127_0_0_0_CandidateIps() throws Exception {
    String focusJid = "focusJid";

    ColibriConferenceIQ confIq = ColibriUtilities.createConferenceIq(focusJid);
    confIq.getContents().get(0).getChannel(0).setTransport(new RawUdpTransportPacketExtension());

    IQ respIq = bridge.handleColibriConferenceIQ(confIq);

    assertTrue(respIq instanceof ColibriConferenceIQ);
    ColibriConferenceIQ respConfIq = (ColibriConferenceIQ) respIq;

    for (CandidatePacketExtension candidate :
        respConfIq.getContents().get(0).getChannel(0).getTransport().getCandidateList()) {
      assertNotEquals("127.0.0.1", candidate.getAttribute("ip"));
    }
  }
  /** Tests requesting a raw UDP channel with RTP level relay type MIXER */
  @Test
  public void testMixerChannel() throws Exception {
    String focusJid = "focusJid";

    ColibriConferenceIQ confIq = ColibriUtilities.createConferenceIq(focusJid);
    ColibriConferenceIQ.Channel channel = confIq.getContents().get(0).getChannel(0);
    channel.setTransport(new RawUdpTransportPacketExtension());
    channel.setRTPLevelRelayType(RTPLevelRelayType.MIXER);

    IQ respIq = bridge.handleColibriConferenceIQ(confIq);

    assertTrue(respIq instanceof ColibriConferenceIQ);
    ColibriConferenceIQ respConfIq = (ColibriConferenceIQ) respIq;

    assertEquals(
        RTPLevelRelayType.MIXER,
        respConfIq.getContents().get(0).getChannel(0).getRTPLevelRelayType());
  }