@Test
public void testAsyncInitialPopulation() throws Exception
{

    client.create().forPath("/test");
    client.create().forPath("/test/one", "hey there".getBytes());
    cache = newTreeCacheWithListeners(client, "/test");
    cache.start();
    assertEvent(TreeCacheEvent.Type.NODE_ADDED, "/test");
    assertEvent(TreeCacheEvent.Type.NODE_ADDED, "/test/one");
    assertEvent(TreeCacheEvent.Type.INITIALIZED);
    assertNoMoreEvents();
}