         
         describe("S3DXMLMTLSamplerDescriptorNode") {
             it("can parse a sampler descriptor") {
-                let desc = descMan.samplerDescriptors["sampler_desc"]!
+                let desc = descMan.getSamplerDescriptor("sampler_desc")
                 expect(desc.minFilter) == MTLSamplerMinMagFilter.Linear
                 expect(desc.magFilter) == MTLSamplerMinMagFilter.Linear
                 expect(desc.mipFilter) == MTLSamplerMipFilter.Linear

        
        describe("S3DXMLMTLRenderPassDescriptorNode") {
            it("can parse a render pass descriptor") {
                let desc = descMan.renderPassDescriptors["render_pass_desc"]!
                let colorAttach = descMan.renderPassColorAttachmentDescriptors["rpass_color_attach_desc"]!
                let depthAttach = descMan.renderPassDepthAttachmentDescriptors["rpass_depth_attach_desc"]!
                let stencilAttach = descMan.renderPassStencilAttachmentDescriptors["rpass_stencil_attach_desc"]!
                
                expect(desc.colorAttachments[0]) == colorAttach
                expect(desc.depthAttachment) == depthAttach

        let library = device!.newDefaultLibrary()
        let testBundle = NSBundle(forClass: S3DXMLSpec.self)
        let xmlData: NSData = S3DXML.readXML(testBundle, filename: "S3DXMLTest")
        let s3d = S3DXML(data: xmlData)
        
        var descMan = SpectraDescriptorManager(library: library!)
        descMan.parseS3DXML(s3d)
        
        describe("SpectraDescriptorManager") {
            it("parses enumGroups from XSD") {
                expect(descMan.getMtlEnum("mtlSamplerAddressMode", key: "ClampToEdge") == 0)
            }
        }
        
