    @Test(expected = AuthorizeException.class)
    public void testSetLogoNoAuth() throws Exception {

        // Disallow current Community WRITE perms
        doThrow(new AuthorizeException()).when(authorizeServiceSpy).authorizeAction(context, c, Constants.WRITE);

        File f = new File(testProps.get("test.bitstream").toString());
        communityService.setLogo(context, c, new FileInputStream(f));
        fail("Exception expected");
    }