public static void assertHeaderPresent ( String msg , SipMessage sipMessage , String header ) { assertNotNull ( "Null assert object passed in" , sipMessage ) ; assertTrue ( msg , sipMessage . getHeaders ( header ) . hasNext ( ) ) ; }
Asserts that the given SIP message contains at least one occurrence of the specified header . Assertion failure output includes the given message text .