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