assertTrue("Email is wrong", data.getEmail().equals("foo@anatom.se"));
assertNotNull("Email should not be null", data.getEmail()); assertTrue("Email is wrong", data.getEmail().equals(username+"@anatom.se"));
    public void test02AuthenticateUser() throws Exception {        cat.debug(">test02AuthenticateUser()");        // user that we know exists...        UserAuthData data = remote.authenticateUser("foo", "foo123");        cat.debug("DN: "+data.getDN());        assertTrue("DN is wrong", data.getDN().indexOf("foo") != -1);        cat.debug("Email: "+data.getEmail());        assertTrue("Email is wrong", data.getEmail().equals("foo@anatom.se"));        cat.debug("Type: "+data.getType());        assertTrue("Type is wrong", data.getType() == SecConst.USER_ENDUSER);        cat.debug("<test02AuthenticateUser()");    }