public void LocateAllWithMetadataTest()
        {
            DependencyInjectionContainer container = new DependencyInjectionContainer();

            container.Configure(c =>
            {
                c.Export<SimpleObjectA>().As<ISimpleObject>().WithMetadata("Metadata", "Group1");
                c.Export<SimpleObjectB>().As<ISimpleObject>().WithMetadata("Metadata", "Group1");
                c.Export<SimpleObjectC>().As<ISimpleObject>().WithMetadata("Metadata", "Group1");
                c.Export<SimpleObjectD>().As<ISimpleObject>().WithMetadata("Metadata", "Group2");
                c.Export<SimpleObjectE>().As<ISimpleObject>().WithMetadata("Metadata", "Group2");
            });
            var list = container.LocateAllWithMetadata<ISimpleObject>("Metadata");

            Assert.NotNull(list);

            Assert.Equal(5, list.Count());
        }