@Test
void prepareCertificateData() {

    final byte[] certificateData = CertificateUtils.prepareCertificateData("ENCODED");
    assertEquals(PEM_CERT_BEGIN_MARKER +
            LINE_SEPARATOR +
            "ENCODED" +
            LINE_SEPARATOR +
            PEM_CERT_END_MARKER,
            new String(certificateData)
    );
}