public int getZkConnectionCount() {
    synchronized (_sharedConnections) {
      return _sharedConnections.size();
    }
  }
@Test(groups = "needZk")
  public void testAnnouncerNoStartup() throws Exception {
    List<URI> hosts = prepareHostNames(5, "testAnnouncerNoStartup");
    List<ZooKeeperConnectionManager> connectionManagers = prepareConnectionManagers(hosts);
    List<ZooKeeperConnectionManager> managersToStart = connectionManagers.subList(0,3);
    assertEquals(_provider.getZkConnectionCount(), 1);

    startConnectionManagers(connectionManagers.subList(0,3));

    //verify that only three managers are started.
    UriProperties properties = _verificationStore.get(CLUSTER_NAME);
    assertNotNull(properties);
    assertEquals(properties.Uris().size(), 3);

    shutdownConnectionManagers(connectionManagers);
  }