public void ProvideNewServiceScope_WithScopedServiceProvider()
        {
            var scopedServiceProvider  = new Mock <IServiceProvider>();
            var expectedObjectInstance = new object();

            scopedServiceProvider.Setup(o => o.GetService(typeof(object)))
            .Returns(expectedObjectInstance);
            serviceScope.Setup(o => o.ServiceProvider)
            .Returns(scopedServiceProvider.Object);

            var dependencyScope = resolver.BeginScope();

            Assert.AreSame(expectedObjectInstance, dependencyScope.GetService(typeof(object)));
        }