.start();
// connect to second node
Observable<Integer> oc2 = RemoteObservable.connect("localhost", serverPort2, Codecs.integer());
Subscription subscription = oc2.subscribe();
// check client subscription
assertFalse(subscription.isUnsubscribed());
Thread.sleep(1000); // allow a few iterations to complete
// unsubscribe to client subscription
subscription.unsubscribe();
Thread.sleep(3000); // allow time for unsubscribe to propagate
// check client
assertTrue(subscription.isUnsubscribed());
// check source
Assert.assertEquals(true, sourceSubscriptionUnsubscribed.getValue());
}