Collection extends DSpaceObject implements DSpaceObjectLegacySupport { protected void setLogo(Bitstream logo) { this.logo = logo; setModified(); } protected  Collection(); @Override String getName(); Bitstream getLogo(); Group getSubmitters(); Group getAdministrators(); Group getWorkflowStep1(); Group getWorkflowStep2(); Group getWorkflowStep3(); String getLicenseCollection(); void setLicense(Context context, String license); Item getTemplateItem(); List<Community> getCommunities(); @Override boolean equals(Object other); @Override int hashCode(); @Override int getType(); void setWorkflowGroup(Context context, int step, Group g); @Override Integer getLegacyId(); @Transient
    static final String COPYRIGHT_TEXT; @Transient
    static final String INTRODUCTORY_TEXT; @Transient
    static final String SHORT_DESCRIPTION; @Transient
    static final String SIDEBAR_TEXT; @Transient
    static final String PROVENANCE_TEXT; }
@Test(expected=AuthorizeException.class) public void testSetLogoNoAuth() throws Exception { new NonStrictExpectations(authorizeService.getClass()) {{ authorizeService.authorizeActionBoolean((Context) any, (Community) any, Constants.ADD, true); result = false; authorizeService.authorizeActionBoolean((Context) any, (Community) any, Constants.WRITE, true); result = false; authorizeService.authorizeAction((Context) any, (Collection) any, Constants.WRITE, true); result = new AuthorizeException(); }}; File f = new File(testProps.get("test.bitstream").toString()); Bitstream logo = collectionService.setLogo(context, collection, new FileInputStream(f)); fail("EXception expected"); }