session.sendRequest(subscribe, Response.OK); // 2
ServerTransaction tx = session.waitForNotify();
Request notify = tx.getRequest(); // 3
//System.out.println(notify);
session.sendResponse(Response.OK, tx); // 4
SubscriptionStateHeader subState = (SubscriptionStateHeader) notify.getHeader(SubscriptionStateHeader.NAME);
assertEquals(SubscriptionStateHeader.ACTIVE.toLowerCase(), subState.getState().toLowerCase());
assertBetween(95, 100, subState.getExpires());
assertEquals("reg", ((EventHeader) notify.getHeader(EventHeader.NAME)).getEventType());
Reginfo regInfo = getRegInfo(notify);