cat.debug("subject="+data.getSubjectDN());
log.debug("subject="+data.getSubjectDN());
    public void test03LookupChangedUser2() throws Exception {        cat.debug(">test03LookupChangedUser2()");        UserDataPK pk = new UserDataPK(username);        UserDataRemote data = home.findByPrimaryKey(pk);        cat.debug("found by key! ="+ data);        cat.debug("username="+data.getUsername());        assertTrue( "wrong username", data.getUsername().equals(username) );        cat.debug("subject="+data.getSubjectDN());        assertTrue( "wrong DN", data.getSubjectDN().indexOf(username)!=-1 );        cat.debug("email="+data.getSubjectEmail());        assertNotNull("Email should not be null now.", data.getSubjectEmail());        assertTrue( "wrong email", data.getSubjectEmail().equals(username+"@anatom.se"));        cat.debug("status="+data.getStatus());        assertTrue( "wrong status", data.getStatus() == UserDataRemote.STATUS_GENERATED );        cat.debug("type="+data.getType());        assertTrue( "wrong type", data.getType() == SecConst.USER_ENDUSER);        cat.debug("password foo234 returned " + data.comparePassword("foo234"));        assertTrue( "wrong pwd foo234", data.comparePassword("foo234"));        assertEquals( "wrong clear pwd foo234", data.getClearPassword(), "foo234");        cat.debug("password "+pwd+" returned " + data.comparePassword(pwd));        assertTrue( "wrong pwd ("+pwd+" works)", data.comparePassword(pwd)==false);        data.setOpenPassword("foo234");        cat.debug("<test03LookupChangedUser2()");    }