ec.setPrincipal( null );
    public void testNoLoginThrowsException() throws Exception    {        try {            q.find(Experimenter.class,0l);            fail("Non-logged-in call allowed!");        } catch (RuntimeException e){            // ok.        }    }