KeyWithCert { public X509Certificate getCertificate() { return certificate; } KeyWithCert(String encodedCertificate);  KeyWithCert(String encodedPrivateKey, String passphrase, String encodedCertificate); X509Certificate getCertificate(); PrivateKey getPrivateKey();  }
@Test public void testCertOnly() throws Exception { assertNotNull(new KeyWithCert(goodCert).getCertificate()); }