@Before
	public void createRepository() throws Exception {
		this.repository = new ZooKeeperStreamDefinitionRepository(zkConnection,
				new ZooKeeperModuleDependencyRepository(zkConnection));
		repository.afterPropertiesSet();
		for (int i = 0; !zkConnection.isConnected() && i < 100; i++) {
			Thread.sleep(100);
		}
	}
Unit tests for {@link ZooKeeperStreamDefinitionRepository}.

@author Eric Bottard
@author David Turanski
@author Gary Russell
@author Mark Fisher
spring-xd-dirt/src/test/java/org/springframework/xd/dirt/stream/zookeeper/ZooKeeperStreamDefinitionRepositoryTests.java