responses.wait(WAIT_DELAY);
Thread.sleep(1000L); // wait in case an unexpected update comes in betweeen
assertEquals("wrong number of updates", 1, responses.size());
}
sub1.shutdown(false);
pub1.shutdown(true);
}
catch (Exception ex) {
ex.printStackTrace();
assertTrue(false);