protected void setUp() throws Exception {
super.setUp();
// An authorized bundle.
authorizedBundleMock =
new BundleMock("authorizedBundleMock", expectations);
authorizedBundleMock.expects.getLocation()
.returns(AUTHORIZED_BUNDLE_LOCATION).any();
authorizedBundleMock.expects
.hasPermission(SecurityHelper.CONFIGURATION_PERMISSION)
.returns(true).any();
// An unauthorized bundle.
unauthorizedBundleMock =
new BundleMock("unauthorizedBundleMock", expectations);
unauthorizedBundleMock.expects.getLocation()
.returns(UNAUTHORIZED_BUNDLE_LOCATION).any();
unauthorizedBundleMock.expects
.hasPermission(SecurityHelper.CONFIGURATION_PERMISSION)
.returns(false).any();
// An attacking bundle.
attackingBundleMock =
new BundleMock("attackingBundleMock", expectations);
attackingBundleMock.expects.getLocation()
.returns(ATTACKING_BUNDLE_LOCATION)
.any();
attackingBundleMock.expects