winfoSession.sendRequest(subscribe, Response.OK); // 2
ServerTransaction tx = winfoSession.waitForNotify(); // 3
Request notify = tx.getRequest();
//System.out.println(notify);
winfoSession.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(WatcherInfoEventPackage.NAME, ((EventHeader) notify.getHeader(EventHeader.NAME)).getEventType());
Watcherinfo watcherinfo = getWatcherinfo(notify);