CertificateInformationExtractor { public BigInteger getSerialNumber() { return certificate.getSerialNumber().getValue(); } CertificateInformationExtractor(Certificate certificate); Certificate getCertificate(); BigInteger getSerialNumber(); byte[] getIssuerNameHash(); byte[] getIssuerKeyHash(); Boolean getMustStaple(); Boolean getMustStaplev2(); String getOcspServerUrl(); String getCertificateIssuerUrl(); Certificate retrieveIssuerCertificate();  }
@Test public void testGetSerialNumber() { BigInteger expectedSerialNumber = new BigInteger("403767931667699214058966529413005128395827"); Assert.assertEquals(expectedSerialNumber, certificateInformationExtractor.getSerialNumber()); }