}
@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);
}
}