                     let extensionItem = NSExtensionItem()
 
                     extensionItem.attachments = [
-                        NSItemProvider(item: NSURL(string: "https://ello.co"), typeIdentifier: String(kUTTypeURL)),
-                        NSItemProvider(item: "https://ello.co", typeIdentifier: String(kUTTypeText))
+                        FakeItemProvider(item: NSURL(string: "https://ello.co"), typeIdentifier: String(kUTTypeURL)),
+                        FakeItemProvider(item: "https://ello.co", typeIdentifier: String(kUTTypeText))
                     ]
 
                     it("returns true if content text is present and extension item is nil") {

                    let extensionItem = NSExtensionItem()

                    extensionItem.attachments = [
                        NSItemProvider(item: NSURL(string: "https://ello.co"), typeIdentifier: String(kUTTypeURL)),
                        NSItemProvider(item: "https://ello.co", typeIdentifier: String(kUTTypeText))
                    ]

                    let urlPreview = ExtensionItemPreview(text: "https://ello.co")

                    waitUntil(timeout: 30) { done in
                        ShareAttachmentProcessor.preview(extensionItem) { previews in
                            itemPreviews = previews
                            expect(itemPreviews[0] == urlPreview).to(beTrue())
                            expect(itemPreviews.count) == 1
                            done()
                        }
                    }
                }
            }

                    }

                    extensionItem.attachments = [
                        FakeItemProvider(item: NSURL(string: "https://ello.co"), typeIdentifier: String(kUTTypeURL)),
                        FakeItemProvider(item: "hello", typeIdentifier: String(kUTTypeText)),
                        FakeItemProvider(item: fileURL, typeIdentifier: String(kUTTypeImage))
                    ]

                    let urlPreview = ExtensionItemPreview(text: "https://ello.co")
                    let textPreview = ExtensionItemPreview(text: "hello")

                    ShareAttachmentProcessor.preview(extensionItem) { previews in
                        itemPreviews = previews
                        expect(itemPreviews.count) == 3
                        expect(itemPreviews[0] == urlPreview).to(beTrue())
                        expect(itemPreviews[1] == textPreview).to(beTrue())
                        expect(itemPreviews[2].image).notTo(beNil())
                    }
                }

