// name we do not know.
perThreadExpectations.addThreadSpecificBuilder(
dispatcherThread, dispatcherExpectations);
adminServiceReferenceMock =
new ServiceReferenceMock("adminServiceReferenceMock");
DelayedReferenceContainer referenceContainer =
new DelayedReferenceContainer();
referenceContainer.setReference(adminServiceReferenceMock);
// Create a bundle context that can be used across thread. This can
// also be used to add expectations for the current thread.
contextMock = new BundleContextMock("contextMock",
perThreadExpectations);
listenerReferenceMock =
new ServiceReferenceMock("listenerReferenceMock",
dispatcherExpectations);
listenerMock = new ConfigurationListenerMock(
"listenerMock", dispatcherExpectations);