@Test
public void testAddBundleAuth() throws Exception
{

    new NonStrictExpectations(authorizeService.getClass())
    {{
        // Allow Item ADD perms
        authorizeService.authorizeAction((Context) any, (Item) any,
                Constants.ADD); result = null;
    }};
    String name = "bundle";
    Bundle created = bundleService.create(context, it, name);
    created.setName(context, name);
    assertThat("testAddBundleAuth 0", itemService.getBundles(it, name), notNullValue());
    assertTrue("testAddBundleAuth 1", itemService.getBundles(it, name).size() == 1);
    assertThat("testAddBundleAuth 2", itemService.getBundles(it, name).get(0), equalTo(created));
}