certfps = store.findCertificatesByIssuerAndSernos(new Admin(Admin.TYPE_INTERNALUSER)
certfps = store.findCertificatesByIssuerAndSernos(admin
    public void test05CertificatesByIssuerAndSernos() throws Exception {        m_log.debug(">test05CertificatesByIssuerAndSernos()");            ICertificateStoreSessionRemote store = m_storehome.create();        X509Certificate rootcacert;        X509Certificate subcacert;        X509Certificate cert;        Vector sernos;        Collection certfps;                rootcacert = CertTools.getCertfromByteArray(testrootcert);        subcacert = CertTools.getCertfromByteArray(testcacert);        cert = CertTools.getCertfromByteArray(testcert);        sernos = new Vector();        sernos.add(subcacert.getSerialNumber());        sernos.add(rootcacert.getSerialNumber());        certfps = store.findCertificatesByIssuerAndSernos(new Admin(Admin.TYPE_INTERNALUSER)                                                         , rootcacert.getSubjectDN().getName()                                                         , sernos);        assertNotNull("failed to list certs", certfps);        // we expect two certificates cause the rootca certificate is        // self signed and so the issuer is identical with the subject        // to which the certificate belongs        dumpCertificates(certfps);        assertTrue("failed to list certs", certfps.size() == 2);        sernos = new Vector();        sernos.add(cert.getSerialNumber());        certfps = store.findCertificatesByIssuerAndSernos(new Admin(Admin.TYPE_INTERNALUSER)                                                         , subcacert.getSubjectDN().getName()                                                         , sernos);        assertNotNull("failed to list certs", certfps);        dumpCertificates(certfps);        assertTrue("failed to list certs", certfps.size() == 1);        assertTrue("Unable to find test certificate."                   , m_certs.contains(certfps.iterator().next()));        m_log.debug("<test05CertificatesByIssuerAndSernos()");        }