SdpProcessor { public boolean checkForMinimalOffer(SessionDescription sdp) throws SdpException { Vector<MediaDescription> mds = sdp.getMediaDescriptions(false); for (MediaDescription m : mds) { if (m.getMedia().getMediaFormats(false) == null) { return false; } } return true; } SdpProcessor(); boolean containsFormat(String format, SessionDescription sdp); boolean containsMedia(String media, SessionDescription sdp); void exclude(String f, SessionDescription sdp); void excludeAttribute(String id, MediaDescription m); boolean checkForMinimalOffer(SessionDescription sdp);  }
@Test public void testMinimalOffer() throws Exception { assertTrue("Minimal offer", sdpProcessor.checkForMinimalOffer(sdp)); }