{
SubscribeSession winfoSession = new SubscribeSession(getBobPhone(), "presence.winfo"); // 1
Request subscribe = winfoSession.newInitialSubscribe(100, getBobUri());
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());