@Test
public void testEncodeG729() throws Exception {

    Collection<Attribute> attributes = AVProfile.G729.encode();
    assertEquals(2, attributes.size());
    Attribute rtpmap = getAttribute(attributes, 0);
    assertEquals("rtpmap",rtpmap.getName());
    assertEquals("18 g729/8000",rtpmap.getValue());
    
    Attribute fmtp = getAttribute(attributes, 1);
    assertEquals("fmtp",fmtp.getName());
    assertEquals("18 annex=b",fmtp.getValue());
}