@Test
public void testFindBySubmitter() throws Exception 
{

    Iterator<Item> all = itemService.findBySubmitter(context, context.getCurrentUser());
    assertThat("testFindBySubmitter 0", all, notNullValue());
    boolean added = false;
    while(all.hasNext())
    {
        Item tmp = all.next();
        if(tmp.equals(it))
        {
            added = true;
        }
    }
    assertTrue("testFindBySubmitter 1",added);
    context.turnOffAuthorisationSystem();
    all = itemService.findBySubmitter(context, ePersonService.create(context));
    context.restoreAuthSystemState();
    assertThat("testFindBySubmitter 2", all, notNullValue());
    assertFalse("testFindBySubmitter 3", all.hasNext());
}