public void writeSessionData(SessionData sessionData) {
        curator.set(sessionPath.append(SESSION_DATA_PATH), sessionData.toJson());
    }
@Test
    public void require_that_session_data_is_written_to_zk() {
        int sessionId = 2;
        SessionZooKeeperClient zkc = createSessionZKClient(sessionId);
        zkc.writeSessionData(new SessionData(ApplicationId.defaultId(),
                                             Optional.of(new FileReference("foo")),
                                             Version.fromString("8.195.1"),
                                             Instant.now(),
                                             Optional.empty(),
                                             Optional.empty(),
                                             Optional.empty(),
                                             List.of(),
                                             List.of(),
                                             Optional.empty(),
                                             List.of(),
                                             ActivationTriggers.empty()));
        Path path = sessionPath(sessionId).append(SESSION_DATA_PATH);
        assertTrue(curator.exists(path));
        String data = Utf8.toString(curator.getData(path).get());
        assertTrue(data.contains("{\"applicationId\":\"default:default:default\",\"applicationPackageReference\":\"foo\",\"version\":\"8.195.1\",\"createTime\":"));
        assertTrue(data.contains(",\"tenantSecretStores\":[],\"operatorCertificates\":[],\"dataplaneTokens\":[]," +
                                 "\"activationTriggers\":{\"nodeRestarts\":[],\"reindexings\":[]}"));
    }