}
};
nc.setDiscoveryAgent(da);
broker1.addNetworkConnector(nc);
nc.start();
// All bridge attempts should fail, so the attempt latch should get
// triggered. However, because of the race condition, the first attempt
// is considered successful and causes further attempts to stop.
// Therefore, this wait will time out and cause the test to fail.