// Attempt to register another factory for the same pid from a
// different bundle. This should fail and log a warning. Then make sure
// that the other service listener events do not fail.
factoryHandler.serviceRegistered(attackingFactoryReferenceMock);
factoryHandler.serviceModified(attackingFactoryReferenceMock);
factoryHandler.serviceUnregistering(attackingFactoryReferenceMock);
// Create a couple of factory configurations.
Configuration fc1_1 =
authorizedAdmin.createFactoryConfiguration(FACTORY_PID1, null);