cat.debug("password "+pwd+" returned " + data2.comparePassword(pwd));
log.debug("password "+pwd+" returned " + data2.comparePassword(pwd));
    public void test02LookupAndChangeUser() throws Exception {        cat.debug(">test02LookupAndChangeUser()");        UserDataPK pk = new UserDataPK(username);        cat.debug("pk="+ pk);        UserDataRemote data2 = home.findByPrimaryKey(pk);        cat.debug("found by key! ="+ data2);        cat.debug("username="+data2.getUsername());        assertTrue( "wrong username", data2.getUsername().equals(username) );        cat.debug("subject="+data2.getSubjectDN());        assertTrue( "wrong DN", data2.getSubjectDN().indexOf(username) != -1);        cat.debug("email="+data2.getSubjectEmail());        assertNull( "wrong email", data2.getSubjectEmail());        cat.debug("status="+data2.getStatus());        assertTrue( "wrong status", data2.getStatus() == UserDataRemote.STATUS_NEW );        cat.debug("type="+data2.getType());        assertTrue( "wrong type", data2.getType() == SecConst.USER_INVALID);        cat.debug("password foo123 returned " + data2.comparePassword("foo123"));        assertTrue( "wrong pwd (foo123 works)", data2.comparePassword("foo123")==false);        cat.debug("password "+pwd+" returned " + data2.comparePassword(pwd));        assertTrue( "wrong pwd "+pwd, data2.comparePassword(pwd));        data2.setStatus(UserDataRemote.STATUS_GENERATED);        data2.setType(SecConst.USER_ENDUSER);        data2.setPassword("foo123");        data2.setSubjectEmail(username+"@anatom.se");        cat.debug("Changed it");        cat.debug("<test02LookupAndChangeUser()");    }