     func testObjectInserts() {
         let moc = coreDataStack.mainQueueContext
 
-        // Insert some authors
-        for _ in 0..<10 {
-            let _ = Author(managedObjectContext: moc)
+        // Insert some Books
+        let bookTitles = StubbedBookData.books
+        for title in bookTitles {
+            let book = Book(managedObjectContext: moc)
+            book.title = title
         }
         try! moc.saveContextAndWait()
 
         XCTAssertEqual(delegate.didPerformFetchCount, 1)
-        XCTAssertEqual(delegate.didChangeObjectCalls.count, 10)
+        XCTAssertEqual(delegate.didChangeObjectCalls.count, 100)
     }
 }


        let moc = coreDataStack.mainQueueContext

        // Setup fetched results controller
        let fr = NSFetchRequest(entityName: Author.entityName)
        fr.sortDescriptors = [NSSortDescriptor(key: "firstName", ascending: true)]
        fetchedResultsController = FetchedResultsController<Author>(fetchRequest: fr, managedObjectContext: moc)
        fetchedResultsController.setDelegate(self.delegate)

        do {

// MARK: - FetchedResultsControllerDelegate

class SampleFetchedResultsControllerDelegate: FetchedResultsControllerDelegate {
    var didChangeObjectCalls: [FetchedResultsObjectChange<Book>] = []
    var didChangeSectionCalls: [FetchedResultsSectionChange<Book>] = []
    var willChangeContentCount = 0
    var didChangeContentCount = 0
    var didPerformFetchCount = 0

    func fetchedResultsController(controller: FetchedResultsController<Book>,
        didChangeObject change: FetchedResultsObjectChange<Book>) {
            didChangeObjectCalls.append(change)
    }

    func fetchedResultsController(controller: FetchedResultsController<Book>,
        didChangeSection change: FetchedResultsSectionChange<Book>) {
            didChangeSectionCalls.append(change)
    }

    func fetchedResultsControllerWillChangeContent(controller: FetchedResultsController<Book>) {
        ++willChangeContentCount
    }

    func fetchedResultsControllerDidChangeContent(controller: FetchedResultsController<Book>) {
        ++didChangeContentCount
    }

    func fetchedResultsControllerDidPerformFetch(controller: FetchedResultsController<Book>) {
        ++didPerformFetchCount
    }
}
