new ServiceReferenceMock("unauthorizedFactoryReferenceMock",
expectations);
// Create a mock ManagedServiceFactory that is invoked from the
// dispatcher thread.
final ManagedServiceFactoryMock unauthorizedManagedFactoryMock =
new ManagedServiceFactoryMock("unauthorizedManagedFactoryMock",
dispatcherExpectations);
final ServiceReferenceMock attackingFactoryReferenceMock =
new ServiceReferenceMock("attackingFactoryReferenceMock",
expectations);
// Create a mock ManagedServiceFactory that is invoked from the
// dispatcher thread.
final ManagedServiceFactoryMock attackingManagedFactoryMock =
new ManagedServiceFactoryMock("attackingManagedFactoryMock",
dispatcherExpectations);
// =====================================================================
// Set Expectations
// =====================================================================