public void createApplication(ApplicationId id) {
        database().createApplication(id);
    }
@Test
    public void require_that_application_ids_can_be_written() throws Exception {
        TenantApplications repo = createZKAppRepo();
        ApplicationId myapp = createApplicationId("myapp");
        repo.createApplication(myapp);
        writeActiveTransaction(repo, myapp, 3);
        String path = TenantRepository.getApplicationsPath(tenantName).append(myapp.serializedForm()).getAbsolute();
        assertNotNull(curatorFramework.checkExists().forPath(path));
        assertEquals("{\"applicationId\":\"tenant:myapp:myinst\",\"activeSession\":3,\"lastDeployedSession\":3}",
                     Utf8.toString(curatorFramework.getData().forPath(path)));
        writeActiveTransaction(repo, myapp, 5);
        assertNotNull(curatorFramework.checkExists().forPath(path));
        assertEquals("{\"applicationId\":\"tenant:myapp:myinst\",\"activeSession\":5,\"lastDeployedSession\":5}",
                     Utf8.toString(curatorFramework.getData().forPath(path)));
    }