 
     func test__logger_outputs_number_of_received_errors() {
 
-        let operation = TestOperation(error: CloudContainerCondition.Error.NotAuthenticated)
+        let operation = TestOperation(error: BlockCondition.Error.BlockConditionFailed)
         addCompletionBlockToTestOperation(operation, withExpectation: expectationWithDescription("Test: \(__FUNCTION__)"))
 
         var receivedMessages = [String]()

        waitForExpectationsWithTimeout(3, handler: nil)

        XCTAssertEqual(receivedMessages.count, 2)
        XCTAssertEqual(receivedMessages[1], "\(operation): finished with error(s): [Operations.CloudContainerCondition.Error.NotAuthenticated].")
    }

    func test__logger_receives_messages_from_produced_operation() {

        let produced = TestOperation(delay: 0)
        produced.name = "Produced Operation"
        let operation = TestOperation(error: CloudContainerCondition.Error.NotAuthenticated, produced: produced)
        operation.name = "Test Operation"
        addCompletionBlockToTestOperation(operation, withExpectation: expectationWithDescription("Test: \(__FUNCTION__)"))


        XCTAssertEqual(receivedMessages[1], "Test Operation: did produce operation: Produced Operation.")
        XCTAssertEqual(receivedMessages[2], "Produced Operation: did start.")
        XCTAssertEqual(receivedMessages[3], "Produced Operation: finished with no errors.")
        XCTAssertEqual(receivedMessages[4], "Test Operation: finished with error(s): [Operations.BlockCondition.Error.BlockConditionFailed].")
    }
}

