public void CreateInterceptedComponent()
        {
            IInterceptedComponentBuilder interceptorManager = new DefaultInterceptedComponentBuilder();

            IMailService mailService = new SimpleMailService();

            IInterceptedComponent component =
                interceptorManager.CreateInterceptedComponent(
                    mailService, typeof(IMailService) );
            AssertNotNull( "Proxy not created", component.ProxiedInstance );

            IMailService proxiedMailService = component.ProxiedInstance as IMailService;
            AssertNotNull( "Could not cast to IMailService", proxiedMailService );
        }
        private void Resolver(
			IComponentModel model, Type typeRequest, String argumentOrPropertyName, 
			object key, out object value )
        {
            AssertEquals( typeof(IMailService), typeRequest );
            value = new SimpleMailService();
        }