appArtifactManager.writeProperties(ImmutableMap.of("authorized", "no")); Assert.fail("Writing properties to artifact should have failed because Bob does not have admin privileges on " + "the artifact"); appArtifactManager.delete(); Assert.fail("Deleting artifact should have failed because Bob does not have admin privileges on the artifact"); } catch (UnauthorizedException expected) { pluginArtifactManager.writeProperties(ImmutableMap.of("authorized", "no")); Assert.fail("Writing properties to artifact should have failed because Bob does not have admin privileges on " + "the artifact"); pluginArtifactManager.removeProperties(); Assert.fail("Removing properties to artifact should have failed because Bob does not have admin privileges on " + "the artifact"); pluginArtifactManager.delete(); Assert.fail("Deleting artifact should have failed because Bob does not have admin privileges on the artifact"); } catch (UnauthorizedException expected) { appArtifactManager.writeProperties(ImmutableMap.of("authorized", "yes")); appArtifactManager.removeProperties(); appArtifactManager.delete(); pluginArtifactManager.delete();