protected void subscribeStop(String nameValue) throws Throwable {
  URI observerUri=URI.create(observerServiceUriForStop);
  waitForSubscriptionToAppear(observerUri,EXAMPLES_SUBSCRIPTIONS);
  verifyNotification(nameValue,observerUri);
  JsExecutor.executeSynchronously(null);
  waitForSubscriptionToDisappear(observerUri,EXAMPLES_SUBSCRIPTIONS);
}

protected void subscribeStop ( String nameValue ) throws Throwable { URI observerUri = URI . create ( observerServiceUriForStop ) ; waitForSubscriptionToAppear ( observerUri , EXAMPLES_SUBSCRIPTIONS ) ; verifyNotification ( nameValue , observerUri ) ; JsExecutor . executeSynchronously ( null ) ; waitForSubscriptionToDisappear ( observerUri , EXAMPLES_SUBSCRIPTIONS ) ; }
tests that js service can subscribe and receive notifications and that subscription is removed when service is stopped
