public void writeEndpointCertificateMetadata(ApplicationId application, EndpointCertificateMetadata endpointCertificateMetadata) {
        try {
            Slime slime = new Slime();
            EndpointCertificateMetadataSerializer.toSlime(endpointCertificateMetadata, slime.setObject());
            curator.set(endpointCertificateMetadataPathOf(application), SlimeUtils.toJsonBytes(slime));
        } catch (Exception e) {
            throw new RuntimeException("Could not write endpoint certificate metadata for " + application, e);
        }
    }
@Test
    public void can_write_object_format() {
        var endpointCertificateMetadata = new EndpointCertificateMetadata("key-name", "cert-name", 1, digicert);

        endpointCertificateMetadataStore.writeEndpointCertificateMetadata(applicationId, endpointCertificateMetadata);

        assertEquals("{\"keyName\":\"key-name\",\"certName\":\"cert-name\",\"version\":1,\"issuer\":\"digicert\"}",
                new String(curator.getData(endpointCertificateMetadataPath).orElseThrow()));
    }