protected override void AttachToComponentRegistration(IComponentRegistry componentRegistry, IComponentRegistration registration)
        {
            base.AttachToComponentRegistration(componentRegistry, registration);

            var includedTypes = _modelMapper.GetReferencedTypes(registration);
            foreach (var includedType in includedTypes)
                SendTypeModelIfNeeded(includedType);
           var message = new ComponentAddedMessage(_modelMapper.GetComponentModel(registration));            
            Send(message);
        }
            public void SetUp()
            {
                _componentRegistration = RegistrationBuilder
                    .ForType(typeof(string))
                    .CreateRegistration();

               _fixture = new ModuleTestHarness();

                _fixture.ClearMessages();
                _fixture.Container.ComponentRegistry.Register(_componentRegistration);

                _message = _fixture.GetSingleMessageOrDefault<ComponentAddedMessage>();
            }