CertificateInformationExtractor { public Boolean getMustStaple() throws IOException, ParserException { if (mustStaple == null) { mustStaple = parseMustStaple(); } return mustStaple; } CertificateInformationExtractor(Certificate certificate); Certificate getCertificate(); BigInteger getSerialNumber(); byte[] getIssuerNameHash(); byte[] getIssuerKeyHash(); Boolean getMustStaple(); Boolean getMustStaplev2(); String getOcspServerUrl(); String getCertificateIssuerUrl(); Certificate retrieveIssuerCertificate();  }
@Test public void testGetMustStaple() throws IOException, ParserException { Boolean mustStaple = certificateInformationExtractor.getMustStaple(); Assert.assertTrue(mustStaple); }