public class JunkAtEndOfMessageTest extends TestCase {
public void testMessageSyntax() {
MessageFactoryImpl messageFactory = new MessageFactoryImpl();
try {
Request request = messageFactory
.createRequest("BYE sip:127.0.0.1:5080;transport=tcp SIP/2.0\r\n"
+ "Via: SIP/2.0/TCP 127.0.0.1:5060;rport=5060;branch=z9hG4bKd2c87858eb0a7a09becc7a115c608d27\r\n"
+ "CSeq: 2 BYE\r\n"
+ "Call-ID: 84a5c57fd263bcce6fec05edf20c5aba@127.0.0.1\r\n"
+ "From: \"The Master Blaster\" <sip:BigGuy@here.com>;tag=12345\r\n"