public void Password_Encrypted()
        {
            IMember createdMember = null;
            var     memberType    = MockedContentTypes.CreateSimpleMemberType();

            foreach (var p in ConventionsHelper.GetStandardPropertyTypeStubs())
            {
                memberType.AddPropertyType(p.Value);
            }
            var memberTypeServiceMock = new Mock <IMemberTypeService>();

            memberTypeServiceMock.Setup(x => x.GetDefault()).Returns("Member");
            var membershipServiceMock = new Mock <IMembershipMemberService>();

            membershipServiceMock.Setup(service => service.Exists("test")).Returns(false);
            membershipServiceMock.Setup(service => service.GetByEmail("*****@*****.**")).Returns(() => null);
            membershipServiceMock.Setup(
                service => service.CreateWithIdentity(It.IsAny <string>(), It.IsAny <string>(), It.IsAny <string>(), It.IsAny <string>(), It.IsAny <bool>()))
            .Callback((string u, string e, string p, string m, bool isApproved) =>
            {
                createdMember = new Member("test", e, u, p, memberType, isApproved);
            })
            .Returns(() => createdMember);

            var provider = new MembersMembershipProvider(membershipServiceMock.Object, memberTypeServiceMock.Object);

            provider.Initialize("test", new NameValueCollection {
                { "passwordFormat", "Encrypted" }
            });


            MembershipCreateStatus status;

            provider.CreateUser("test", "test", "testtest$1", "*****@*****.**", "test", "test", true, "test", out status);

            Assert.AreNotEqual("test", createdMember.RawPasswordValue);
            var decrypted = provider.DecryptPassword(createdMember.RawPasswordValue);

            Assert.AreEqual("testtest$1", decrypted);
        }