@Test
public void testCreate() throws Exception
{

    new NonStrictExpectations(authorizeService.getClass())
    {{
        // Allow Item ADD perms (needed to create an Item)
        authorizeService.authorizeAction((Context) any, (Collection) any,
                Constants.ADD); result = null;
        authorizeService.authorizeAction((Context) any, (Collection) any,
                Constants.WRITE); result = null;
    }};
    Item created = createItem();
    assertThat("testCreate 0", created, notNullValue());
    assertThat("testCreate 1", created.getName(), nullValue());
}