@Test
void writeCertificateData() throws IOException {

    CertificateUtils.writeCertificateData(rootProjectDir.getRoot(), "cert", "cert");
    File certFile = new File(rootProjectDir.getRoot(), "cert" + PEM_CERT_FILE_EXTENSION);
    assertTrue(certFile.exists());
    assertEquals(PEM_CERT_BEGIN_MARKER +
            LINE_SEPARATOR +
            "cert" +
            LINE_SEPARATOR +
            PEM_CERT_END_MARKER, FileUtils.readFileToString(certFile, Charset.defaultCharset()));
}