" <parameter name='vbr' value='on'/>\n" +
" <parameter name='cng' value='on'/>\n" +
" </payload-type>\n" +
" </description>\n";
Rtp rtp = unmarshal(xml, Rtp.class);
Assert.assertEquals(rtp.getMedia(), "audio");
Assert.assertEquals(rtp.getPayloadTypes().size(), 7);
Assert.assertEquals(rtp.getPayloadTypes().get(0).getName(), "speex");
Assert.assertEquals(rtp.getPayloadTypes().get(0).getClockRate(), 16000);
Assert.assertEquals(rtp.getPayloadTypes().get(4).getChannels(), 2);
Assert.assertEquals(rtp.getPayloadTypes().get(6).getParameters().size(), 2);
Assert.assertEquals(rtp.getPayloadTypes().get(6).getParameters().get(0).getName(), "vbr");
Assert.assertEquals(rtp.getPayloadTypes().get(6).getParameters().get(0).getValue(), "on");
Assert.assertEquals(rtp.getPayloadTypes().get(6).getMaxPacketTime(), 0);
}