@Test
public void testCreateAuth2() throws Exception
{

    //Default to Admin Rights, but NOT Community Admin Rights
    new NonStrictExpectations(authorizeService.getClass())
    {{
        // Disallow Community ADD perms
        authorizeService.authorizeActionBoolean((Context) any, (Community) any,
                Constants.ADD); result = false;
        // Allow full Admin perms
        authorizeService.isAdmin((Context) any); result = true;
    }};
    //Test that a full Admin can create a Community without a parent (Top-Level Community)
    Community created = communityService.create(null, context);
    //the item created by default has no name set
    assertThat("testCreate 0", created, notNullValue());
    assertThat("testCreate 1", created.getName(), equalTo(""));
    //Test that a full Admin can also create a Community with a parent (Sub-Community)
    Community son = communityService.create(created, context);
    //the item created by default has no name set
    assertThat("testCreate 2", son, notNullValue());
    assertThat("testCreate 3", son.getName(), equalTo(""));
    assertTrue("testCreate 4", communityService.getAllParents(context, son).size() == 1);
    assertThat("testCreate 5", communityService.getAllParents(context, son).get(0), equalTo(created));
}