@Test
void buildCertDataFromMissingFile() {

    assertThrows(
            CertificateUtilsException.class,
            () -> buildCertDataFromFile(
                    () -> Files.newInputStream(Paths.get(rootProjectDir.getRoot().toPath().toString(), "cert.cert")),
                    DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument(),
                    CertificateFactory.getInstance("X.509")
            )
    );
}