Collection certfps = store.findCertificatesByType(new Admin(Admin.TYPE_INTERNALUSER)
Collection certfps = store.findCertificatesByType(admin
    public void test02FindCACertificates() throws Exception {        m_log.debug(">test02FindCACertificates()");            X509Certificate cert;        X509Certificate storecert;        cert = CertTools.getCertfromByteArray(testrootcert);        ICertificateStoreSessionRemote store = m_storehome.create();        // List all certificates to see        Collection certfps = store.findCertificatesByType(new Admin(Admin.TYPE_INTERNALUSER)                                                          , SecConst.CERTTYPE_SUBCA                                                          , null);        assertNotNull("failed to list certs", certfps);        assertTrue("failed to list certs", certfps.size() != 0);        Iterator iter = certfps.iterator();        while (iter.hasNext()) {            Object obj = iter.next();             if (!(obj instanceof X509Certificate)) {                assertTrue("method 'findCertificatesByType' does not return X509Certificate objects.\n"                           + "Class of returned object '" + obj.getClass().getName() + "'"                           , false);                        }        }        m_log.debug("<test02FindCACertificates()");        }