waitForSubscription();
waitForSubscription("portal events"); assertNotNull( "second subscription not notified", sub2.waitForEvent(getSubscribeWaitTimeout()));
    public void testSubscribe() throws Exception {        subscribeToPortal(Constants.PORTAL_CREATED_EVENT);        sub1 = getPortal().subscribeToPortalEvents(HTTP_EXAMPLE_ORG, false);        sub2 = getPortal().subscribeToPortalEvents(HTTP_EXAMPLE_ORG, true);        createSystem(null);        waitForSubscription();    }