@Test
public void testModes() throws Exception
{

    Timing timing = new Timing();
    CuratorFramework client = CuratorFrameworkFactory.newClient(server.getConnectString(), timing.session(), timing.connection(), new RetryOneTime(1));
    client.start();
    try
    {
        client.create().forPath("/test");
        for ( boolean cacheData : new boolean[]{false, true} )
        {
            internalTestMode(client, cacheData);
            client.delete().forPath("/test/one");
            client.delete().forPath("/test/two");
        }
    }
    finally
    {
        TestCleanState.closeAndTestClean(client);
    }
}