X509Certificate cert; cert = CertTools.getCertfromByteArray(testrootcert);
    public void test02FindCACertificates() throws Exception {        m_log.debug(">test02FindCACertificates()");        X509Certificate cert;        cert = CertTools.getCertfromByteArray(testrootcert);        ICertificateStoreSessionRemote store = m_storehome.create();        // List all certificates to see        Collection certfps = store.findCertificatesByType(admin                , CertificateDataBean.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()");    }