dialog.getLocalSequenceNumberLong() + 1,
dialog.getLocalSeqNumber() + 1,
	public void testCreateRequest() {		try {			Request bye = null;			try {				bye = dialog.createRequest(Request.BYE);			} catch (SipException ex) {				ex.printStackTrace();				fail("A dialog failed to create a BYE request.");			}			//check method			assertEquals(				"Dialog.createRequest() returned a request with a bad method.",				Request.BYE,				bye.getMethod());			//check CSeq number			assertEquals(				"Dialog.createRequest() returned a request with a bad sequence number.",				dialog.getLocalSequenceNumberLong() + 1,				((CSeqHeader) bye.getHeader(CSeqHeader.NAME))					.getSequenceNumberLong());			//Check From			FromHeader byeFrom = (FromHeader) bye.getHeader(FromHeader.NAME);			assertEquals(				"Dialog.createRequest() returned a request with a bad From header.",				dialog.getLocalParty(),				byeFrom.getAddress());			//Check From tags			assertEquals(				"Dialog.createRequest() returned a request with a bad From tag.",				dialog.getLocalTag(),				byeFrom.getTag());			//Check To			ToHeader byeTo = (ToHeader) bye.getHeader(ToHeader.NAME);			assertEquals(				"Dialog.createRequest() returned a request with a bad To header.",				dialog.getRemoteParty(),				byeTo.getAddress());			//Check To tags			assertEquals(				"Dialog.createRequest() returned a request with a bad To tag.",				dialog.getRemoteTag(),				byeTo.getTag());			ClientTransaction ct = super.tiSipProvider.getNewClientTransaction(bye);			dialog.sendRequest(ct);			assertEquals("Dialog mismatch ", ct.getDialog(),dialog );			waitForMessage();									try {				eventCollector.collectDialogTermiatedEvent(tiSipProvider);			} catch( TooManyListenersException ex) {				throw new TckInternalError("failed to regiser a listener iwth the TI", ex);			}			waitForTimeout();			DialogTerminatedEvent dte = eventCollector.extractCollectedDialogTerminatedEvent();			assertEquals("Dialog terminated event source mismatch", dte.getSource(), tiSipProvider);			assertEquals("Dialog terminated event mismatch ", dte.getDialog(), dialog);		} catch (Throwable exc) {			exc.printStackTrace();			fail(exc.getClass().getName() + ": " + exc.getMessage());		}		assertTrue(new Exception().getStackTrace()[0].toString(), true);	}