@Test
@Override
public void testGetParentObject() throws SQLException
{

    try
    {
        //default has no parent
        assertThat("testGetParentObject 0", itemService.getParentObject(context, it), notNullValue());
        context.turnOffAuthorisationSystem();
        Collection parent = createCollection();
        it.setOwningCollection(parent);
        context.restoreAuthSystemState();
        assertThat("testGetParentObject 1", itemService.getParentObject(context, it), notNullValue());
        assertThat("testGetParentObject 2", (Collection) itemService.getParentObject(context, it), equalTo(parent));
    }
    catch(AuthorizeException ex)
    {
        fail("Authorize exception catched");
    }
}