@Test
public void testClose() throws Exception {

    startZK(1);
    final ZookeeperClient client = createClient(SES_TIMEOUT);
    client.createIfNeeded("/apacheIgnite1", null, CreateMode.PERSISTENT);
    client.zk().close();
    GridTestUtils.assertThrows(log, new Callable<Void>() {
        @Override public Void call() throws Exception {
            client.createIfNeeded("/apacheIgnite2", null, CreateMode.PERSISTENT);
            return null;
        }
    }, ZookeeperClientFailedException.class, null);
}