System.out.println("Looking for cert with DN:"+cert.getIssuerDN().toString()+" and serno "+cert.getSerialNumber());
cat.debug("Looking for cert with DN:"+cert.getIssuerDN().toString()+" and serno "+cert.getSerialNumber());
    public void test06FindByIssuerAndSerno() throws Exception {        cat.debug(">test06FindByIssuerAndSerno()");        CertificateDataPK pk = new CertificateDataPK();        pk.fp = CertTools.getFingerprintAsString(cert);        CertificateData data3 = home.findByPrimaryKey(pk);        assertNotNull("Failed to find cert", data3);        System.out.println("Looking for cert with DN:"+cert.getIssuerDN().toString()+" and serno "+cert.getSerialNumber());        Object obj2 = ctx.lookup("CertificateStoreSession");        ICertificateStoreSessionHome storehome = (ICertificateStoreSessionHome) javax.rmi.PortableRemoteObject.narrow(obj2, ICertificateStoreSessionHome.class);        ICertificateStoreSessionRemote store = storehome.create();        Certificate fcert = store.findCertificateByIssuerAndSerno(cert.getIssuerDN().toString(), cert.getSerialNumber());        assertNotNull("Cant find by issuer and serno", fcert);        System.out.println(fcert.toString());        cat.debug("<test06FindByIssuerAndSerno()");    }