public void get_edm_models_should_return_expected_results()
        {
            // arrange
            var apiVersion = new ApiVersion(1, 0);
            var actionDescriptorCollectionProvider = NewActionDescriptorCollectionProvider(new[] { apiVersion });
            var options = Options.Create(new ApiVersioningOptions()
            {
                DefaultApiVersion = apiVersion
            });
            var modelCreated = new Mock <Action <ODataModelBuilder, IEdmModel> >();
            var builder      = new VersionedODataModelBuilder(actionDescriptorCollectionProvider, options)
            {
                DefaultModelConfiguration = (b, v, r) => b.EntitySet <TestEntity>("Tests"),
                OnModelCreated            = modelCreated.Object
            };

            // act
            var model = builder.GetEdmModels().Single();

            // assert
            model.GetAnnotationValue <ApiVersionAnnotation>(model).ApiVersion.Should().Be(apiVersion);
            modelCreated.Verify(f => f(It.IsAny <ODataModelBuilder>(), model), Once());
        }