bs = setupSecondaryBroker(false);
System.setProperty("SecondaryBrokerURL",bs.getConnectorByName(DEFAULT_BROKER_URL_KEY_2).getUri().toString());
bs.stop();
// wait for the broker to stop
bs.waitUntilStopped();
// Deploy aggregate on a secondary broker which was shutdown above. The aggregate should
// detect missing broker and silently wait for the broker to come up
deployService(eeUimaEngine, relativePath + "/Deploy_AggregateAnnotatorOnSecondaryBroker.xml");
try {
// spin a thread to restart a broker after 5 seconds