@Test
@SuppressWarnings("ObjectEqualsNull")
public void testEquals() throws SQLException, AuthorizeException
{

    new NonStrictExpectations(authorizeService.getClass())
    {{
        authorizeService.authorizeAction((Context) any, (Community) any,
                Constants.ADD); result = null;
    }};
    assertFalse("testEquals 0",collection.equals(null));
    assertFalse("testEquals 1",collection.equals(collectionService.create(context, owningCommunity)));
    assertTrue("testEquals 2", collection.equals(collection));
}