@classmethod
def forTestCase(cls, testCase, specification=None):
    """
        Creates a registry for this test case.

        Immediately starts this registry and schedules it to be cleaned up.
        """
    if specification is None:
        specification = testCase.mockSpecification
    registry = cls(specification)
    registry.start()
    testCase.addCleanup(registry.stop)
    return registry
