public void writeStatus(Session.Status sessionStatus) {
        try {
            createWriteStatusTransaction(sessionStatus).commit();
        } catch (Exception e) {
            throw new RuntimeException("Unable to write session status", e);
        }
    }
@Test
    public void require_that_status_is_written_to_zk() {
        int sessionId = 2;
        SessionZooKeeperClient zkc = createSessionZKClient(sessionId);
        zkc.writeStatus(Session.Status.NEW);
        Path path = sessionPath(sessionId).append(SESSIONSTATE_ZK_SUBPATH);
        assertTrue(curator.exists(path));
        assertEquals("NEW", Utf8.toString(curator.getData(path).get()));
    }