getSession().setAttribute(Constants.PROFILE, new Profile(null, null, new HashMap(), new HashMap(), new HashMap()));
    public void testExpand() throws Exception {        Set openClasses = new HashSet();        openClasses.add("org.intermine.model.testmodel.Thing");        getSession().setAttribute("openClasses", openClasses);        addRequestParameter("node", "org.intermine.model.testmodel.Department");        setRequestPathInfo("/changeTree");        addRequestParameter("method", "expand");        actionPerform();        verifyNoActionErrors();        verifyForward("renderTree");                Set expected = new HashSet();        expected.add("org.intermine.model.testmodel.Thing");        expected.add("org.intermine.model.testmodel.Department");        assertEquals(expected, getSession().getAttribute("openClasses"));    }