final Certificate certificate = certificates().getDetails(
FileUtils.readFileToString(testData().resolveFile("pem.txt"))
);
assertThat(certificate, is(notNullValue()));
assertThat(certificate.pem(), is(notNullValue()));
assertThat(certificate.fingerprint(), is("19:08:03:84:0E:1D:0E:46:05:D4:17:50:5D:A1:FA:34:36:6E:06:C1"));
}
/**
* Verify that we can retrieve certificate from a mail server host:port.
*/