cat.debug("<test07DSAKey()");
log.debug("<test07DSAKey()");
    public void test07DSAKey()        throws Exception    {        cat.debug(">test07DSAKey()");        UserDataPK pk = new UserDataPK("foo");        UserDataRemote data = userhome.findByPrimaryKey(pk);        data.setStatus(UserDataRemote.STATUS_NEW);        cat.debug("Reset status of 'foo' to NEW");        try {            X509Certificate cert = (X509Certificate)remote.createCertificate(new Admin(Admin.TYPE_INTERNALUSER),"foo", "foo123", new PKCS10RequestMessage(keytooldsa));        } catch (Exception e) {            // RSASignSession should throw an IllegalKeyException here.            assertTrue("Expected IllegalKeyException: " + e.toString(),                       e instanceof IllegalKeyException);        }        cat.debug("<test07DSAKey()");    }